[gnome-themes-standard] Widget theme: subtler styling for new spinbuttons.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Widget theme: subtler styling for new spinbuttons.
- Date: Thu, 1 Dec 2011 02:32:06 +0000 (UTC)
commit 567e344cf4b8c40c886f490700dd9f1d1aaa2c5c
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Wed Nov 30 14:11:57 2011 +0100
Widget theme: subtler styling for new spinbuttons.
.../Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css | 10 +++--
themes/Adwaita/gtk-3.0/gtk-widgets.css | 40 ++++++++++----------
2 files changed, 26 insertions(+), 24 deletions(-)
---
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 971fd5e..cf5c007 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-dark-overrides.css
@@ -40,15 +40,13 @@ GtkComboBox *:active {
.inline-toolbar .button,
.button.raised *,
.raised .button *,
-.inline-toolbar .button *,
-.spinbutton .button {
+.inline-toolbar .button * {
icon-shadow: @button_text_shadow 0 -1;
}
.button.raised *:active,
.raised .button *:active,
-.inline-toolbar .button *:active,
-.spinbutton .button:active {
+.inline-toolbar .button *:active {
icon-shadow: @button_active_text_shadow 0 -1;
}
@@ -62,3 +60,7 @@ GtkComboBox *:active {
.button .separator:prelight {
color: alpha (@theme_text_color, 0.1);
}
+
+.spinbutton .button:insensitive {
+ color: shade(@internal_element_color, 1.35);
+}
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 249df3c..d0d98ce 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -192,20 +192,10 @@ GtkTreeView .separator,
* GtkSpinButton *
*****************/
.spinbutton .button {
- color: @theme_text_color;
- icon-shadow: @button_text_shadow 0 1;
+ color: @internal_element_color;
padding: 2 6;
}
-.spinbutton .button:active {
- icon-shadow: @button_active_text_shadow 0 1;
-}
-
-.spinbutton .button:insensitive {
- color: @insensitive_border_color;
- icon-shadow: none;
-}
-
.spinbutton .button,
.spinbutton .button:prelight,
.spinbutton .button:active,
@@ -214,31 +204,41 @@ GtkTreeView .separator,
border-width: 0 1;
border-radius: 0;
border-style: solid;
- border-image-width: 0 3;
+ border-image: none;
+ border-color: alpha(@internal_element_color, 0.15);
+
+ background-image: none;
+ background-color: none;
+
box-shadow: none;
}
+.spinbutton .button:insensitive {
+ color: @internal_element_insensitive;
+}
+
+.spinbutton .button:active,
+.spinbutton .button:prelight {
+ color: @entry_text_color;
+}
+
.spinbutton .button:first-child,
.spinbutton .button:first-child:prelight,
.spinbutton .button:first-child:active,
.spinbutton .button:first-child:focused,
.spinbutton .button:first-child:insensitive {
- border-style: none;
- border-image: none;
-
- border-radius: 1 0 0 1;
+ border-left-width: 0;
}
+
.spinbutton .button:last-child,
.spinbutton .button:last-child:prelight,
.spinbutton .button:last-child:active,
.spinbutton .button:last-child:focused,
.spinbutton .button:last-child:insensitive {
- border-style: none;
- border-image: none;
-
- border-radius: 0 1 1 0;
+ border-width: 0;
}
+
/****************
* Progress bar *
****************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]