[gnome-themes-standard/lapo-work] Widget theme: icon-shadow added to raised buttons and inline toolbar buttons, dimmed text shadow on
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard/lapo-work] Widget theme: icon-shadow added to raised buttons and inline toolbar buttons, dimmed text shadow on
- Date: Tue, 22 Nov 2011 17:25:10 +0000 (UTC)
commit 25cd226969468dbfa00990c7d27c7f47ba12f8f5
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 33f6e83..59eb2e6 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -21,7 +21,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 41a3e40..bc062ff 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -202,6 +202,7 @@ GtkTreeView .separator,
.spinbutton.button {
color: @internal_element_color;
+ box-shadow: none; /* Doesn't work */
}
.spinbutton.button:prelight,
@@ -388,6 +389,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;
@@ -411,10 +416,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 c2a2f24..24d3071 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -64,8 +64,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]