diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobcolor.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobwidget.py | 13 |
2 files changed, 10 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobcolor.py b/bitbake/lib/bb/ui/crumbs/hobcolor.py index 402f022128..f767d22cba 100644 --- a/bitbake/lib/bb/ui/crumbs/hobcolor.py +++ b/bitbake/lib/bb/ui/crumbs/hobcolor.py | |||
@@ -25,6 +25,8 @@ class HobColors: | |||
25 | PALE_RED = "#ffaaaa" | 25 | PALE_RED = "#ffaaaa" |
26 | GRAY = "#aaaaaa" | 26 | GRAY = "#aaaaaa" |
27 | LIGHT_GRAY = "#dddddd" | 27 | LIGHT_GRAY = "#dddddd" |
28 | DEEP_GRAY = "#7c7c77" | ||
29 | SLIGHT_DARK = "#5f5f5f" | ||
28 | DARK = "#3c3b37" | 30 | DARK = "#3c3b37" |
29 | BLACK = "#000000" | 31 | BLACK = "#000000" |
30 | LIGHT_ORANGE = "#f7a787" | 32 | LIGHT_ORANGE = "#f7a787" |
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index bc27cd19d1..a5c52f7964 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py | |||
@@ -496,16 +496,19 @@ class HobTabBar(gtk.DrawingArea): | |||
496 | 496 | ||
497 | r = height / 10 | 497 | r = height / 10 |
498 | if self.tab_pressed == True: | 498 | if self.tab_pressed == True: |
499 | for xoff, yoff in [(1, 0), (2, 0)]: | 499 | for xoff, yoff, c1, c2 in [(1, 0, HobColors.SLIGHT_DARK, HobColors.DARK), (2, 0, HobColors.GRAY, HobColors.LIGHT_GRAY)]: |
500 | cr.set_source_color(gtk.gdk.color_parse(HobColors.PALE_GREEN)) | 500 | cr.set_source_color(gtk.gdk.color_parse(c1)) |
501 | cr.move_to(x + xoff, y + height + yoff) | ||
502 | cr.line_to(x + xoff, r + yoff) | ||
503 | cr.arc(x + r + xoff, y + r + yoff, r, math.pi, 1.5*math.pi) | ||
501 | cr.move_to(x + r + xoff, y + yoff) | 504 | cr.move_to(x + r + xoff, y + yoff) |
502 | cr.line_to(x + width - r + xoff, y + yoff) | 505 | cr.line_to(x + width - r + xoff, y + yoff) |
503 | cr.arc(x + width - r+ xoff, y + r + yoff, r, 1.5*math.pi, 2*math.pi) | 506 | cr.arc(x + width - r + xoff, y + r + yoff, r, 1.5*math.pi, 2*math.pi) |
507 | cr.stroke() | ||
508 | cr.set_source_color(gtk.gdk.color_parse(c2)) | ||
504 | cr.move_to(x + width + xoff, r + yoff) | 509 | cr.move_to(x + width + xoff, r + yoff) |
505 | cr.line_to(x + width + xoff, y + height + yoff) | 510 | cr.line_to(x + width + xoff, y + height + yoff) |
506 | cr.line_to(x + xoff, y + height + yoff) | 511 | cr.line_to(x + xoff, y + height + yoff) |
507 | cr.line_to(x + xoff, r + yoff) | ||
508 | cr.arc(x + r + xoff, y + r + yoff, r, math.pi, 1.5*math.pi) | ||
509 | cr.stroke() | 512 | cr.stroke() |
510 | x = x + 2 | 513 | x = x + 2 |
511 | y = y + 2 | 514 | y = y + 2 |