diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/progressbar.py')
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/progressbar.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/progressbar.py b/bitbake/lib/bb/ui/crumbs/progressbar.py index 882d461711..f75818ac76 100644 --- a/bitbake/lib/bb/ui/crumbs/progressbar.py +++ b/bitbake/lib/bb/ui/crumbs/progressbar.py | |||
| @@ -29,10 +29,12 @@ class HobProgressBar (gtk.ProgressBar): | |||
| 29 | def set_rcstyle(self, status): | 29 | def set_rcstyle(self, status): |
| 30 | rcstyle = gtk.RcStyle() | 30 | rcstyle = gtk.RcStyle() |
| 31 | rcstyle.fg[2] = gtk.gdk.Color(HobColors.BLACK) | 31 | rcstyle.fg[2] = gtk.gdk.Color(HobColors.BLACK) |
| 32 | if status: | 32 | if status == "stop": |
| 33 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.RUNNING) | 33 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.WARNING) |
| 34 | else: | 34 | elif status == "fail": |
| 35 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.ERROR) | 35 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.ERROR) |
| 36 | else: | ||
| 37 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.RUNNING) | ||
| 36 | self.modify_style(rcstyle) | 38 | self.modify_style(rcstyle) |
| 37 | 39 | ||
| 38 | def set_title(self, text=None): | 40 | def set_title(self, text=None): |
