[gnome-themes-standard] Widget theme: icon-shadow added to raised buttons and inline toolbar buttons, dimmed text shadow on



commit 47ef1b49feac10ec7f7448e49bae5b4362b61e78
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Tue Nov 22 18:24:51 2011 +0100

    Widget theme: icon-shadow added to raised buttons and inline toolbar buttons, dimmed text shadow on pressed buttons in the light theme.

 themes/Adwaita/gtk-3.0/gtk-dark.css                |    3 +-
 .../Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css |   29 ++++++++++++++++++
 themes/Adwaita/gtk-3.0/gtk-widgets.css             |   31 +++++++++++++++++++-
 themes/Adwaita/gtk-3.0/gtk.css                     |    4 +-
 4 files changed, 63 insertions(+), 4 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index 224e59c..4508ee2 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -20,7 +20,8 @@
 @define-color button_gradient_color_b shade (@theme_bg_color, 0.8);
 @define-color button_border #24282a;
 
- define-color button_text_shadow alpha(black, 0.9);
+ define-color button_active_text_shadow black;
+ define-color button_text_shadow black;
 @define-color primary_toolbar_button_text_shadow alpha(black, 0.1);
 
 @define-color button_active_gradient_color_a shade (@button_gradient_color_b, 0.7);
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css b/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
index 1dbdfe7..806bfc0 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
@@ -27,3 +27,32 @@ GtkSwitch.slider {
 .button {
     text-shadow: @button_text_shadow 0 -1;
 }
+
+.button *:active {
+    text-shadow: @button_active_text_shadow 0 -1;
+}
+
+.button
+.button.raised,
+.raised .button,
+.inline-toolbar .button {
+    icon-shadow: @button_text_shadow 0 -1;
+}
+
+.button.raised *,
+.raised .button *,
+.inline-toolbar .button * {
+    icon-shadow: @button_text_shadow 0 -1;
+}
+
+.button.raised *:active,
+.raised .button *:active,
+.inline-toolbar .button *:active {
+    icon-shadow: @button_active_text_shadow 0 -1;
+}
+
+.button.raised *:insensitive,
+.raised .button *:insensitive,
+.inline-toolbar .button *:insensitive {
+    icon-shadow: none;
+}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 239a1f1..1a62882 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -189,6 +189,7 @@ GtkTreeView .separator,
  *****************/
 .spinbutton .button {
     color: @internal_element_color;
+    box-shadow: none; /* Doesn't work */
 }
 
 .spinbutton .button:prelight,
@@ -403,6 +404,10 @@ GtkScrolledWindow.frame {
     text-shadow: @button_text_shadow 0 1;
 }
 
+.button *:active {
+    text-shadow: @button_active_text_shadow 0 1;
+}
+
 .button *:insensitive { /* this really makes no sense*/
     color: @insensitive_fg_color;
     text-shadow: none;
@@ -426,10 +431,34 @@ GtkScrolledWindow.frame {
     background-color: transparent;
 }
 
-.primary-toolbar .button {
+.button.raised *,
+.raised .button *,
+.inline-toolbar .button * {
+    icon-shadow: @button_text_shadow 0 1;
+}
+
+.button.raised *:active,
+.raised .button *:active,
+.inline-toolbar .button *:active {
+    icon-shadow: @button_active_text_shadow 0 1;
+}
+
+.button.raised *:insensitive,
+.raised .button *:insensitive,
+.inline-toolbar .button *:insensitive {
+    icon-shadow: none;
+}
+
+.primary-toolbar .button * {
     text-shadow: @primary_toolbar_button_text_shadow 0 1;
 }
 
+.button.raised,
+.raised .button {
+    text-shadow: @button_text_shadow 0 1;
+}
+
+
 .primary-toolbar .button:insensitive {
     text-shadow: none;
 }
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 28a1113..2d7a7ab 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -63,8 +63,8 @@
 
 @define-color button_active_gradient_color_a #a2a9a2;
 @define-color button_active_gradient_color_b shade (@button_active_gradient_color_a, 0.83);
-
- define-color button_text_shadow alpha(white, 0.2);
+ define-color button_active_text_shadow alpha(white, 0.3);
+ define-color button_text_shadow alpha(white, 0.7);
 @define-color primary_toolbar_button_text_shadow alpha(black, 0.1);
 
 @define-color theme_unfocused_button_active_color shade(@theme_unfocused_bg_color, 0.8); /* to be defined */



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