[gtk+/gtk-style-context] GtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.



commit 754a926ce40e0dfb620019d648bcbb8fbf94142a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 22 21:46:12 2010 +0100

    GtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.

 gtk/gtkcssprovider.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index dc72955..e98f604 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3576,6 +3576,12 @@ gtk_css_provider_get_default (void)
         "GtkSpinButton.button {\n"
         "  border-width: 1;\n"
         "}\n"
+        "\n"
+        ".scale.slider:hover,\n"
+        "GtkSpinButton.button:hover {\n"
+        "  background-color: shade (@bg_color, 1.05);\n"
+        "  border-color: shade (@bg_color, 0.8);\n"
+        "}\n"
         "\n";
 
       provider = gtk_css_provider_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]