[gtk+] css-provider: Fix up the Switch style



commit d51c617e13b0999f95bffba7567cb5e235055cf4
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed Dec 29 03:09:14 2010 +0000

    css-provider: Fix up the Switch style
    
    As it was with the old style, when the Switch is in the "on" state the
    trough should be using the selected background color.

 gtk/gtkcssprovider.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 1c9b550..0c94a45 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -4022,6 +4022,11 @@ gtk_css_provider_get_default (void)
         "  border-color: shade (@bg_color, 0.8);\n"
         "}\n"
         "\n"
+        "GtkSwitch.trough:active {\n"
+        "  background-color: @selected_bg_color;\n"
+        "  color: @selected_fg_color;\n"
+        "}\n"
+        "\n"
         "GtkToggleButton.button:inconsistent {\n"
         "  border-style: outset;\n"
         "  border-width: 1px;\n"



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