Don't change color of highlighted apps, simply use bold chars.

This commit is contained in:
Clement Lefebvre 2010-10-26 13:59:17 +01:00
parent 294618b770
commit 435908ec44
2 changed files with 17 additions and 7 deletions

6
debian/changelog vendored
View File

@ -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

View File

@ -490,11 +490,15 @@ 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:
#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: