mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
bad0a86f98
commit
cef911ecf4
@@ -31,6 +31,7 @@ class HobColors:
|
|||||||
BLACK = "#000000"
|
BLACK = "#000000"
|
||||||
LIGHT_ORANGE = "#f7a787"
|
LIGHT_ORANGE = "#f7a787"
|
||||||
YELLOW = "#ffff00"
|
YELLOW = "#ffff00"
|
||||||
|
PALE_BLUE = "#53b8ff"
|
||||||
|
|
||||||
OK = WHITE
|
OK = WHITE
|
||||||
RUNNING = PALE_GREEN
|
RUNNING = PALE_GREEN
|
||||||
|
|||||||
@@ -200,8 +200,9 @@ class HobAltButton(gtk.Button):
|
|||||||
"""
|
"""
|
||||||
A gtk.Button subclass which has no relief, and so is more discrete
|
A gtk.Button subclass which has no relief, and so is more discrete
|
||||||
"""
|
"""
|
||||||
def __init__(self, label=None):
|
def __init__(self, label):
|
||||||
gtk.Button.__init__(self, label)
|
gtk.Button.__init__(self, "<span color='%s'><b>%s</b></span>" % (HobColors.PALE_BLUE, gobject.markup_escape_text(label)))
|
||||||
|
self.child.set_use_markup(True)
|
||||||
self.set_relief(gtk.RELIEF_NONE)
|
self.set_relief(gtk.RELIEF_NONE)
|
||||||
|
|
||||||
class HobImageButton(gtk.Button):
|
class HobImageButton(gtk.Button):
|
||||||
|
|||||||
Reference in New Issue
Block a user