changeset 29:ccdb5b8b5a6f

Make all menus dark but keep comboboxes light
author IBBoard <dev@ibboard.co.uk>
date Sat, 03 Dec 2016 20:37:58 +0000
parents 3ae6b747786b
children 78e21cea68af
files gtk-3.20/gtk.css gtk-3.20/gtk.scss
diffstat 2 files changed, 21 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/gtk-3.20/gtk.css	Sat Dec 03 20:36:26 2016 +0000
+++ b/gtk-3.20/gtk.css	Sat Dec 03 20:37:58 2016 +0000
@@ -4837,17 +4837,17 @@
     background-color: #3D3D3D;
     color: #cccccc; }
 
-menubar menu, headerbar menu {
+menu {
   background-color: #3D3D3D;
   color: #cccccc;
   border-color: #303030; }
-menubar > menuitem:hover, headerbar > menuitem:hover {
-  box-shadow: inset 0 -3px #5E7F3E; }
+
+#gtk-combobox-popup-menu {
+  background-color: #C6C6C6;
+  color: #161616; }
+
 menubar > menuitem:hover, menubar > menuitem label:hover, headerbar > menuitem:hover, headerbar > menuitem label:hover {
   color: #5E7F3E; }
-menubar > menuitem:insensitive, menubar > menuitem label:insensitive, headerbar > menuitem:insensitive, headerbar > menuitem label:insensitive {
-  color: #6e6e6e;
-  box-shadow: none; }
 menubar > menuitem:backdrop, menubar > menuitem label:backdrop, headerbar > menuitem:backdrop, headerbar > menuitem label:backdrop {
   color: #cccccc; }
 menubar > menuitem menuitem.check, menubar > menuitem menuitem.radio, menubar > menuitem label menuitem.check, menubar > menuitem label menuitem.radio, headerbar > menuitem menuitem.check, headerbar > menuitem menuitem.radio, headerbar > menuitem label menuitem.check, headerbar > menuitem label menuitem.radio {
--- a/gtk-3.20/gtk.scss	Sat Dec 03 20:36:26 2016 +0000
+++ b/gtk-3.20/gtk.scss	Sat Dec 03 20:37:58 2016 +0000
@@ -418,24 +418,27 @@
     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.
+menu {
+  background-color: $bg_dark_color;
+  color: $menu_fg_dark_color;
+  border-color: $header_button_border;
+}
+// Except combo box backgrounds. We want those to be grey, like the
+// combobox itself
+#gtk-combobox-popup-menu {
+  background-color: $bg_color;
+  color: $fg_color;
+}
+// Top-level menu text needs to be tweaked to match dark menus
 menubar, headerbar {
-  menu { 
-    background-color: $bg_dark_color;
-    color: $menu_fg_dark_color;
-    border-color: $header_button_border;
-  }
   & > menuitem {
-    &:hover { //Seems like it :hover even with keyboard focus
-      box-shadow: inset 0 -3px $selected_bg_color;
-    }
     &, & label {
       &:hover { //Seems like it :hover even with keyboard focus
         color: $selected_bg_color
       }
-      &:insensitive {
-        color: $insensitive_fg_color;
-        box-shadow: none;
-      }
       &:backdrop {
         color: $menu_fg_dark_color;
       }