[gnome-themes-standard] Widget theme: fix spinbuttons insensitive button background.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Widget theme: fix spinbuttons insensitive button background.
- Date: Thu, 22 Dec 2011 00:01:22 +0000 (UTC)
commit 1a6f2999f1a6e18b72a4c8fefe5ac4274ca43527
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Thu Dec 22 01:01:03 2011 +0100
Widget theme: fix spinbuttons insensitive button background.
themes/Adwaita/gtk-3.0/gtk-widgets.css | 18 +++++++++++-------
themes/Adwaita/gtk-3.0/gtk.css | 3 ++-
2 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 5f451c5..856a315 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -58,12 +58,6 @@ GtkWindow:window-unfocused {
background-color: @theme_bg_color;
}
-/* *:hover {
- background-color: shade (@theme_bg_color, 1.02);
- color: @theme_fg_color;
-}*/
-
-
*:selected,
*:selected:focus {
background-color: @theme_selected_bg_color;
@@ -248,6 +242,11 @@ GtkTreeView .separator:window-unfocused,
box-shadow: 1 0 inset @inset_dark_color;
}
+.spinbutton .button:window-unfocused {
+ box-shadow: 1 0 inset @unfocused_entry_separators;
+ box-shadow: none;
+}
+
.spinbutton .button:active,
.spinbutton .button:focus,
.spinbutton .button:active:focus,
@@ -262,7 +261,8 @@ GtkTreeView .separator:window-unfocused,
.spinbutton .button:focus,
.spinbutton .button:focus:hover,
.spinbutton .button:insensitive,
-.spinbutton .button:window-unfocused {
+.spinbutton .button:window-unfocused,
+.spinbutton .button:insensitive:window-unfocused {
background-color: transparent;
background-image: none;
}
@@ -271,6 +271,10 @@ GtkTreeView .separator:window-unfocused,
color: @internal_element_insensitive;
}
+.spinbutton .button:insensitive:window-unfocused {
+ color: mix(@internal_element_color, @theme_unfocused_base_color, 0.7);
+}
+
.spinbutton .button:active,
.spinbutton .button:active:focus,
.spinbutton .button:hover {
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index eb8a38f..2a0f025 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -134,7 +134,8 @@
@define-color internal_element_color #888a85;
@define-color internal_element_prelight @theme_text_color;
- define-color internal_element_insensitive shade (@internal_element_color, 1.7);
+/* define-color internal_element_insensitive shade (@internal_element_color, 1.7);*/
+ define-color internal_element_insensitive mix(@internal_element_color, @theme_base_color, 0.7);
@define-color scale_fill @insensitive_borders;
@define-color scale_border_a @internal_element_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]