[gnome-themes-standard] Add hack for libreoffice menus
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Add hack for libreoffice menus
- Date: Fri, 17 Aug 2012 15:10:11 +0000 (UTC)
commit e8f3a49491e6bf922b79d65db1c0ed79fbdbd00f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Jul 8 19:12:35 2012 -0400
Add hack for libreoffice menus
themes/Adwaita/gtk-2.0/gtkrc | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/gtkrc b/themes/Adwaita/gtk-2.0/gtkrc
index 7ec9cdd..d0b14d7 100755
--- a/themes/Adwaita/gtk-2.0/gtkrc
+++ b/themes/Adwaita/gtk-2.0/gtkrc
@@ -588,6 +588,16 @@ style "menu_item"
xthickness = 2
ythickness = 4
+ # HACK: Gtk doesn't actually read this value
+ # while rendering the menu items, but Libreoffice
+ # does; setting this value equal to the one in
+ # fg[PRELIGHT] ensures a code path in the LO theming code
+ # that falls back to a dark text color for menu item text
+ # highlight. The price to pay is black text on menus as well,
+ # but at least it's readable.
+ # See https://bugs.freedesktop.org/show_bug.cgi?id=38038
+ bg[SELECTED] = @selected_fg_color
+
bg[PRELIGHT] = @selected_bg_color
fg[PRELIGHT] = @selected_fg_color
text[PRELIGHT] = @selected_fg_color
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]