summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-03-20 18:50:06 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-20 15:21:34 +0000
commit2abdbaa150a77c6473d728e67c19bc7b23472caa (patch)
tree2fb745e70d78a5d277256a969c00d9ac0ff36c0b /bitbake/lib
parent74c00988be573a24ef3bcf7ff70d355fe5facada (diff)
downloadpoky-2abdbaa150a77c6473d728e67c19bc7b23472caa.tar.gz
Hob: change HobNoteBook tab edge color from green to gray
To change the notebook tab pressed edge color from green to gray. (From Poky rev: 8e454749e7f535cf43544eeb167c90632e89cfb0) (Bitbake rev: 8e4e868e6183fbd52fa455937bb824a52ef15ab5) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobcolor.py2
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py13
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