Don't change color of highlighted apps, simply use bold chars.
This commit is contained in:
parent
294618b770
commit
435908ec44
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
mintmenu (5.1.6) julia; urgency=low
|
||||||
|
|
||||||
|
* Highlighted apps now appear in bold, as opposed to using the fg[gtk.SELECTED] color (to avoid white on white issues with certain themes)
|
||||||
|
|
||||||
|
-- Clement Lefebvre <root@linuxmint.com> Tue, 26 Oct 2010 13:57:00 +0000
|
||||||
|
|
||||||
mintmenu (5.1.5) julia; urgency=low
|
mintmenu (5.1.5) julia; urgency=low
|
||||||
|
|
||||||
* Faster initialization
|
* Faster initialization
|
||||||
|
@ -490,13 +490,17 @@ class MenuApplicationLauncher( ApplicationLauncher ):
|
|||||||
appComment = self.appComment
|
appComment = self.appComment
|
||||||
if self.highlight:
|
if self.highlight:
|
||||||
try:
|
try:
|
||||||
color = self.labelBox.rc_get_style().fg[ gtk.STATE_SELECTED ].to_string()
|
#color = self.labelBox.rc_get_style().fg[ gtk.STATE_SELECTED ].to_string()
|
||||||
if len(color) > 0 and color[0] == "#":
|
#if len(color) > 0 and color[0] == "#":
|
||||||
appName = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appName);
|
#appName = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appName);
|
||||||
appComment = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appComment);
|
#appComment = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appComment);
|
||||||
else:
|
#appName = "<b>%s</b>" % (appName);
|
||||||
appName = "<b>%s</b>" % (appName);
|
#appComment = "<b>%s</b>" % (appComment);
|
||||||
appComment = "<b>%s</b>" % (appComment);
|
#else:
|
||||||
|
#appName = "<b>%s</b>" % (appName);
|
||||||
|
#appComment = "<b>%s</b>" % (appComment);
|
||||||
|
appName = "<b>%s</b>" % (appName);
|
||||||
|
appComment = "<b>%s</b>" % (appComment);
|
||||||
except Exception, detail:
|
except Exception, detail:
|
||||||
print detail
|
print detail
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user