summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xthemes/Adwaita/gtk-2.0/gtkrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/Adwaita/gtk-2.0/gtkrc b/themes/Adwaita/gtk-2.0/gtkrc
index 7ec9cdd5..d0b14d7d 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