[gnome-themes-standard] Widget theme: text-shadows on buttons.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Widget theme: text-shadows on buttons.
- Date: Thu, 1 Dec 2011 02:31:01 +0000 (UTC)
commit 6a3f14daaa9bbdd6b46a849b194bf46dae16f69e
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Tue Nov 22 17:09:19 2011 +0100
Widget theme: text-shadows on buttons.
themes/Adwaita/gtk-3.0/gtk-dark.css | 3 +++
.../Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css | 14 +++++---------
themes/Adwaita/gtk-3.0/gtk-widgets.css | 17 ++++++++++++++++-
themes/Adwaita/gtk-3.0/gtk.css | 3 +++
4 files changed, 27 insertions(+), 10 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index 0d06a98..224e59c 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -20,6 +20,9 @@
@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 primary_toolbar_button_text_shadow alpha(black, 0.1);
+
@define-color button_active_gradient_color_a shade (@button_gradient_color_b, 0.7);
@define-color button_active_gradient_color_b shade (@button_gradient_color_a, 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 88afe89..fe6e4ab 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
@@ -24,14 +24,10 @@ GtkSwitch.slider {
box-shadow: 0 -1 inset alpha(white, 0.07), 0 1 inset @theme_base_color, 0 2 inset alpha(@button_border, 0.15);
}
-/* Don't ask me why I need this one, seems like a bug to me eh */
-GtkScale.trough,
-GtkScale.trough row,
-GtkScale.trough row:hover {
- background-image: -gtk-gradient (linear,
- left top, left bottom,
- from (@button_border),
- to (shade(@theme_bg_color, 0.94)));
- border-image: none;
+.button {
+ text-shadow: @button_text_shadow 0 -1;
}
+.button:insensitive {
+ text-shadow: none;
+}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 96a54c9..b1a657c 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -183,6 +183,7 @@ GtkTreeView .separator,
color: @internal_element_prelight;
}
+
/*****************
* GtkSpinButton *
*****************/
@@ -371,6 +372,7 @@ GtkScrolledWindow.frame {
/***********
* Buttons *
***********/
+
.button,
.button.menuitem.menubar {
padding: 1 4;
@@ -397,10 +399,15 @@ GtkScrolledWindow.frame {
border-style: none;
/* border-image in -assets variant */
+
+ text-shadow: @button_text_shadow 0 1;
}
-.button:insensitive {
+.button:insensitive,
+.button:insensitive:hover,
+.button:insensitive:active {
color: @insensitive_fg_color;
+ text-shadow: none;
}
/* Remove borders from primary toolbar buttons*/
@@ -421,6 +428,14 @@ GtkScrolledWindow.frame {
background-color: transparent;
}
+.primary-toolbar .button {
+ text-shadow: @primary_toolbar_button_text_shadow 0 1;
+}
+
+.primary-toolbar .button:insensitive {
+ text-shadow: none;
+}
+
/* linked buttons */
/* Set up shadows and hilights for button visual separation */
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index d71faff..28a1113 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -64,6 +64,9 @@
@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 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 */
@define-color button_hover_gradient_color_a @theme_base_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]