diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-28 16:32:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-30 17:20:20 +0100 |
commit | 8c5536543fb9b4681ac32517f100f9abec6f2162 (patch) | |
tree | 6d17b90c5125f33d8af47033989f13d190f81383 /bitbake/lib/bb/ui/crumbs/hobwidget.py | |
parent | bcd4d14425cadc5bd6296f59f14733e8c39c49dd (diff) | |
download | poky-8c5536543fb9b4681ac32517f100f9abec6f2162.tar.gz |
Hob: tweak font sizes and layout
Switch to proportional font sizes and tweak padding and layout based on
feedback from design team.
(Bitbake rev: 356f190bb3f0ee9a15df900714edcb85593d6989)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobwidget.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index bcc44ccfb9..9625c6dddd 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py | |||
@@ -254,7 +254,7 @@ class HobAltButton(gtk.Button): | |||
254 | colour = HobColors.PALE_BLUE | 254 | colour = HobColors.PALE_BLUE |
255 | else: | 255 | else: |
256 | colour = HobColors.LIGHT_GRAY | 256 | colour = HobColors.LIGHT_GRAY |
257 | button.set_label("<span color='%s'><b>%s</b></span>" % (colour, gobject.markup_escape_text(button.text))) | 257 | button.set_label("<span size='large' color='%s'><b>%s</b></span>" % (colour, gobject.markup_escape_text(button.text))) |
258 | button.child.set_use_markup(True) | 258 | button.child.set_use_markup(True) |
259 | 259 | ||
260 | @staticmethod | 260 | @staticmethod |
@@ -281,7 +281,7 @@ class HobImageButton(gtk.Button): | |||
281 | self.icon_path = icon_path | 281 | self.icon_path = icon_path |
282 | self.hover_icon_path = hover_icon_path | 282 | self.hover_icon_path = hover_icon_path |
283 | 283 | ||
284 | hbox = gtk.HBox(False, 6) | 284 | hbox = gtk.HBox(False, 10) |
285 | hbox.show() | 285 | hbox.show() |
286 | self.add(hbox) | 286 | self.add(hbox) |
287 | self.icon = gtk.Image() | 287 | self.icon = gtk.Image() |
@@ -295,10 +295,10 @@ class HobImageButton(gtk.Button): | |||
295 | label = gtk.Label() | 295 | label = gtk.Label() |
296 | label.set_alignment(0.0, 0.5) | 296 | label.set_alignment(0.0, 0.5) |
297 | colour = soften_color(label) | 297 | colour = soften_color(label) |
298 | mark = "<span size='larger'>%s</span>\n<span fgcolor='%s'>%s</span>" % (primary_text, colour, secondary_text) | 298 | mark = "<span size='x-large'>%s</span>\n<span size='medium' fgcolor='%s' weight='ultralight'>%s</span>" % (primary_text, colour, secondary_text) |
299 | label.set_markup(mark) | 299 | label.set_markup(mark) |
300 | label.show() | 300 | label.show() |
301 | hbox.pack_start(label, True, True, 6) | 301 | hbox.pack_start(label, True, True, 0) |
302 | 302 | ||
303 | def set_hover_icon_cb(self, widget, event): | 303 | def set_hover_icon_cb(self, widget, event): |
304 | self.icon.set_from_file(self.hover_icon_path) | 304 | self.icon.set_from_file(self.hover_icon_path) |