diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-22 16:02:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-23 16:10:23 +0000 |
commit | cef911ecf453b1bc145cba24e6ffbc7de2815d93 (patch) | |
tree | 0c32de421df4c668fadf2a18b18194fa0d3bd049 /bitbake/lib/bb | |
parent | bad0a86f98dd0398fcd58eb7e07f2c0292526d7d (diff) | |
download | poky-cef911ecf453b1bc145cba24e6ffbc7de2815d93.tar.gz |
lib/bb/ui/crumbs: add colour for HobAltButton per visual design
The visual design calls for the alternative button to have a pale blue
colour.
(Bitbake rev: c9f61765216a013c7ebc02157ea47c3478252e7c)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobcolor.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobwidget.py | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobcolor.py b/bitbake/lib/bb/ui/crumbs/hobcolor.py index f767d22cba..4595dc18e9 100644 --- a/bitbake/lib/bb/ui/crumbs/hobcolor.py +++ b/bitbake/lib/bb/ui/crumbs/hobcolor.py | |||
@@ -31,6 +31,7 @@ class HobColors: | |||
31 | BLACK = "#000000" | 31 | BLACK = "#000000" |
32 | LIGHT_ORANGE = "#f7a787" | 32 | LIGHT_ORANGE = "#f7a787" |
33 | YELLOW = "#ffff00" | 33 | YELLOW = "#ffff00" |
34 | PALE_BLUE = "#53b8ff" | ||
34 | 35 | ||
35 | OK = WHITE | 36 | OK = WHITE |
36 | RUNNING = PALE_GREEN | 37 | RUNNING = PALE_GREEN |
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index e8549a135a..b93e9d4bc1 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py | |||
@@ -200,8 +200,9 @@ class HobAltButton(gtk.Button): | |||
200 | """ | 200 | """ |
201 | A gtk.Button subclass which has no relief, and so is more discrete | 201 | A gtk.Button subclass which has no relief, and so is more discrete |
202 | """ | 202 | """ |
203 | def __init__(self, label=None): | 203 | def __init__(self, label): |
204 | gtk.Button.__init__(self, label) | 204 | gtk.Button.__init__(self, "<span color='%s'><b>%s</b></span>" % (HobColors.PALE_BLUE, gobject.markup_escape_text(label))) |
205 | self.child.set_use_markup(True) | ||
205 | self.set_relief(gtk.RELIEF_NONE) | 206 | self.set_relief(gtk.RELIEF_NONE) |
206 | 207 | ||
207 | class HobImageButton(gtk.Button): | 208 | class HobImageButton(gtk.Button): |