summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-09-16 15:16:28 +0200
committerAlexander Larsson <alexl@redhat.com>2013-09-16 15:18:09 +0200
commit1ea3a547f31cd8efd9cb1b3937defb91b8ab42b6 (patch)
tree1db46f40e5fec342ad80df97d03509580a382aa1
parent22e643f53018133784945006746b868627a2da7d (diff)
downloadgnome-themes-standard-1ea3a547f31cd8efd9cb1b3937defb91b8ab42b6.tar.gz
Fix notebook tab close buttons with new Gtk+
Gtk+ no longer propagates :hover state to child widgets, so we can't do something like ".button GtkImage:hover". Fortunately the stuff the code was using is all inherited properties that we may as well set on the button itself instead. https://bugzilla.gnome.org/show_bug.cgi?id=708144
-rw-r--r--themes/Adwaita/gtk-3.0/gtk-widgets.css16
1 files changed, 6 insertions, 10 deletions
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 6868e2f7..f7a085ab 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -1935,29 +1935,25 @@ GtkLinkButton.button:active {
.notebook tab .button:active,
.notebook tab .button:hover {
border-image: none;
- border-style: none;
background-image: none;
background-color: transparent;
-}
-
-.notebook tab .button GtkImage {
border-radius: 3px;
color: mix(@theme_fg_color, @theme_base_color, 0.6);
border-style: solid;
border-color: transparent;
border-width: 1px;
padding: 1px;
-
icon-shadow: 0 1px @button_text_shadow;
}
-.notebook tab .button GtkImage:hover {
+
+.notebook tab .button:hover {
color: @theme_fg_color;
border-color: alpha(black, 0.1);
}
-.notebook tab .button GtkImage:active,
-.notebook tab .button GtkImage:active:hover {
+.notebook tab .button:active,
+.notebook tab .button:active:hover {
background-color: alpha(black, 0.08);
box-shadow: inset 0 1px alpha(black, 0.05);
color: @button_active_text;
@@ -1969,12 +1965,12 @@ GtkLinkButton.button:active {
alpha(black, 0.13);
}
-.notebook tab .button GtkImage:backdrop {
+.notebook tab .button:backdrop {
color: mix(@theme_unfocused_fg_color, @theme_unfocused_base_color, 0.7);
icon-shadow: none;
}
-.notebook tab .button GtkImage:backdrop:hover {
+.notebook tab .button:backdrop:hover {
color: @theme_unfocused_fg_color;
}