[gnome-themes-standard/lapo-work] Widget theme: text-shadows on buttons.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard/lapo-work] Widget theme: text-shadows on buttons.
- Date: Tue, 22 Nov 2011 16:09:28 +0000 (UTC)
commit e56d6eaf4564c876a94aa642f6dd388ad7f227f7
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 cd8788e..33f6e83 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -21,6 +21,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 185c63d..45b7914 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -184,6 +184,7 @@ GtkTreeView .separator,
color: @internal_element_prelight;
}
+
/*****************
* GtkSpinButton *
*****************/
@@ -356,6 +357,7 @@ GtkScrolledWindow.frame {
/***********
* Buttons *
***********/
+
.button,
.button.menuitem.menubar {
padding: 1 4;
@@ -382,10 +384,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*/
@@ -406,6 +413,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 4b62181..c2a2f24 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -65,6 +65,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]