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
|
||||
|
||||
* Faster initialization
|
||||
|
@ -490,13 +490,17 @@ class MenuApplicationLauncher( ApplicationLauncher ):
|
||||
appComment = self.appComment
|
||||
if self.highlight:
|
||||
try:
|
||||
color = self.labelBox.rc_get_style().fg[ gtk.STATE_SELECTED ].to_string()
|
||||
if len(color) > 0 and color[0] == "#":
|
||||
appName = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appName);
|
||||
appComment = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appComment);
|
||||
else:
|
||||
appName = "<b>%s</b>" % (appName);
|
||||
appComment = "<b>%s</b>" % (appComment);
|
||||
#color = self.labelBox.rc_get_style().fg[ gtk.STATE_SELECTED ].to_string()
|
||||
#if len(color) > 0 and color[0] == "#":
|
||||
#appName = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appName);
|
||||
#appComment = "<span foreground=\"%s\"><b>%s</b></span>" % (color, appComment);
|
||||
#appName = "<b>%s</b>" % (appName);
|
||||
#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:
|
||||
print detail
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user