[gnome-themes-standard] Fix notebook tab close buttons with new Gtk+
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Fix notebook tab close buttons with new Gtk+
- Date: Mon, 16 Sep 2013 13:25:51 +0000 (UTC)
commit 1ea3a547f31cd8efd9cb1b3937defb91b8ab42b6
Author: Alexander Larsson <alexl redhat com>
Date: Mon Sep 16 15:16:28 2013 +0200
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
themes/Adwaita/gtk-3.0/gtk-widgets.css | 16 ++++++----------
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 6868e2f..f7a085a 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]