From cef911ecf453b1bc145cba24e6ffbc7de2815d93 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 22 Mar 2012 16:02:00 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobcolor.py | 1 + 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: BLACK = "#000000" LIGHT_ORANGE = "#f7a787" YELLOW = "#ffff00" + PALE_BLUE = "#53b8ff" OK = WHITE 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): """ A gtk.Button subclass which has no relief, and so is more discrete """ - def __init__(self, label=None): - gtk.Button.__init__(self, label) + def __init__(self, label): + gtk.Button.__init__(self, "%s" % (HobColors.PALE_BLUE, gobject.markup_escape_text(label))) + self.child.set_use_markup(True) self.set_relief(gtk.RELIEF_NONE) class HobImageButton(gtk.Button): -- cgit v1.2.3-54-g00ecf