changeset 32:09cbf23e5f34

Fudge menu colouring so that LibreOffice renders buttons in toolbars correctly
author IBBoard <dev@ibboard.co.uk>
date Sat, 17 Dec 2016 20:06:54 +0000
parents d8fb69db13bf
children 389af1327aa1
files gtk-3.20/gtk.css gtk-3.20/gtk.scss
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk-3.20/gtk.css	Fri Dec 09 20:31:26 2016 +0000
+++ b/gtk-3.20/gtk.css	Sat Dec 17 20:06:54 2016 +0000
@@ -4831,12 +4831,15 @@
 
 menubar {
   background-color: #3D3D3D;
-  color: #cccccc;
+  color: #161616;
   box-shadow: inset 0 -1px rgba(0, 0, 0, 0.1); }
   menubar:backdrop {
     background-color: #3D3D3D;
     color: #cccccc; }
 
+menuitem > label {
+  color: #cccccc; }
+
 menu, .menu, .context-menu {
   background-color: #3D3D3D;
   color: #cccccc;
--- a/gtk-3.20/gtk.scss	Fri Dec 09 20:31:26 2016 +0000
+++ b/gtk-3.20/gtk.scss	Sat Dec 17 20:06:54 2016 +0000
@@ -411,13 +411,20 @@
 }
 menubar {
   background-color: $bg_dark_color;
-  color: $menu_fg_dark_color;
+  // We should use the following line, but it breaks LibreOffice buttons
+  // on toolbars, so keep it dark here and revert it for menu items
+  //color: $menu_fg_dark_color;
+  color: $fg_color;
   box-shadow: inset 0 -1px transparentize(black, 0.9);
   &:backdrop { 
     background-color: $bg_dark_color;
     color: $menu_fg_dark_color;
   }
 }
+// Fix the bad text colour we set for menubar to fix LibreOffice
+menuitem > label {
+  color: $menu_fg_dark_color;
+}
 // Make all menus dark - we mainly want the menu bar menus dark, but
 // Firefox and other non-standard apps use those colours for their
 // context menus as well, so be consistent.