[gnome-themes-standard] Fix missing shadows in active linked buttons



commit 5a9a55dfe92416b4adbafe730afea4a46e54c019
Author: Nikita Churaev <lamefun x0r gmail com>
Date:   Mon Jan 20 19:09:44 2014 +0400

    Fix missing shadows in active linked buttons
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722609

 themes/Adwaita/gtk-3.0/gtk-widgets.css |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 8a2cfa1..20bb86f 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -1339,7 +1339,8 @@ GtkComboBox.combobox-entry .button {
 .toolbar .raised.linked .button:active,
 .inline-toolbar.toolbar .button:active,
 .inline-toolbar.toolbar GtkToolButton > .button:active {
-    box-shadow: inset 1px 0 @inset_dark_color;
+    box-shadow: inset 0 1px 1px alpha(black, 0.1),
+                inset 1px 0 @inset_dark_color;
 }
 
 .linked .button:insensitive,
@@ -1398,6 +1399,20 @@ GtkComboBox.combobox-entry .button {
     box-shadow: none; 
 }
 
+/* remove inset from first-child and only-child active buttons */
+.linked .button:only-child:active,
+.toolbar .button.raised.linked:only-child:active,
+.toolbar .raised.linked .button:only-child:active,
+.inline-toolbar.toolbar .button:only-child:active,
+.inline-toolbar.toolbar GtkToolButton > .button:only-child:active,
+.linked .button:first-child:active,
+.toolbar .button.raised.linked:first-child:active,
+.toolbar .raised.linked .button:first-child:active,
+.inline-toolbar.toolbar .button:first-child:active,
+.inline-toolbar.toolbar GtkToolButton > .button:first-child:active  {
+    box-shadow: inset 0 1px 1px alpha(black, 0.1);
+}
+
 /* Middle button */
 .linked .entry,
 .linked .button,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]