summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-10-21 17:27:09 +0200
committerWolfgang Ulbrich <[email protected]>2015-10-21 17:27:56 +0200
commit8f1a4c556ec32c173b449b16e98955678bddea46 (patch)
tree585008b831f6d1c046191caf4b25f166d04da4af
parent95507634435eba8b432197b2b9bd8e8443521703 (diff)
downloadmate-themes-8f1a4c556ec32c173b449b16e98955678bddea46.tar.bz2
mate-themes-8f1a4c556ec32c173b449b16e98955678bddea46.tar.xz
Gtk+-3.18 submarine themes: fix menu items in dropdown menus of GtkComboBox
-rw-r--r--desktop-themes/Blue-Submarine/gtk-3.0/menu.css28
-rw-r--r--desktop-themes/Green-Submarine/gtk-3.0/menu.css28
2 files changed, 44 insertions, 12 deletions
diff --git a/desktop-themes/Blue-Submarine/gtk-3.0/menu.css b/desktop-themes/Blue-Submarine/gtk-3.0/menu.css
index 35c67f45..21ea28c9 100644
--- a/desktop-themes/Blue-Submarine/gtk-3.0/menu.css
+++ b/desktop-themes/Blue-Submarine/gtk-3.0/menu.css
@@ -162,16 +162,32 @@ GtkTreeMenu .menuitem {
border-width: 0px;
}
-/* Workaround for lp:949368 */
-.toolbar GtkComboBox .menuitem *,
-GtkComboBox .menuitem * {
- transition: all 300ms ease-out;
+.toolbar GtkComboBox .menuitem,
+GtkComboBox .menuitem {
+ transition: all 500ms ease-out;
color: @menu_fg_dark_color;
text-shadow: 0px 1px @menu_shadow_dark_color;
}
-GtkComboBox .menuitem:hover * {
- background-color: shade (@theme_bg_dark_color, 1.2);
+/* needed for .menuitem with gtk+-3.18 */
+GtkTreeMenu.menu .menuitem GtkCellView {
+ background-image: none;
+ background-color: transparent;
+ color: @menu_fg_dark_color;
+ text-shadow: 0px 1px @menu_shadow_dark_color;
+}
+
+GtkTreeMenu.menu .menuitem:hover,
+GtkComboBox .menuitem:hover {
+ background-image: -gtk-gradient (linear,
+ left top, left bottom,
+ from (shade(@menu_bg_dark_color, 2.03)),
+ to (shade(@menu_bg_dark_color, 1.17)));
+ color: shade (@theme_selected_bg_color, 1.6);
+ text-shadow: 0px 1px @theme_selected_shadow_color;
+}
+
+GtkTreeMenu.menu .menuitem:hover GtkCellView {
color: shade (@theme_selected_bg_color, 1.6);
text-shadow: 0px 1px @theme_selected_shadow_color;
}
diff --git a/desktop-themes/Green-Submarine/gtk-3.0/menu.css b/desktop-themes/Green-Submarine/gtk-3.0/menu.css
index 5f3daa44..57946bb9 100644
--- a/desktop-themes/Green-Submarine/gtk-3.0/menu.css
+++ b/desktop-themes/Green-Submarine/gtk-3.0/menu.css
@@ -159,16 +159,32 @@ GtkTreeMenu .menuitem {
border-width: 0px;
}
-/* Workaround for lp:949368 */
-.toolbar GtkComboBox .menuitem *,
-GtkComboBox .menuitem * {
- transition: all 300ms ease-out;
+.toolbar GtkComboBox .menuitem,
+GtkComboBox .menuitem {
+ transition: all 500ms ease-out;
color: @menu_fg_dark_color;
text-shadow: 0px 1px @menu_shadow_dark_color;
}
-GtkComboBox .menuitem:hover * {
- background-color: shade (@theme_bg_dark_color, 1.2);
+/* needed for .menuitem with gtk+-3.18 */
+GtkTreeMenu.menu .menuitem GtkCellView {
+ background-image: none;
+ background-color: transparent;
+ color: @menu_fg_dark_color;
+ text-shadow: 0px 1px @menu_shadow_dark_color;
+}
+
+GtkTreeMenu.menu .menuitem:hover,
+GtkComboBox .menuitem:hover {
+ background-image: -gtk-gradient (linear,
+ left top, left bottom,
+ from (shade(@menu_bg_dark_color, 2.03)),
+ to (shade(@menu_bg_dark_color, 1.17)));
+ color: shade (@theme_selected_bg_color, 1.6);
+ text-shadow: 0px 1px @theme_selected_shadow_color;
+}
+
++GtkTreeMenu.menu .menuitem:hover GtkCellView {
color: shade (@theme_selected_bg_color, 1.3);
text-shadow: 0px 1px @theme_selected_shadow_color;
}