[gtk+/gtk-style-context] GtkCssProvider: Render inconsistent toggle buttons differently.



commit 9c480baa19bc56909cb57a643146ad13756dcf30
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 22 21:47:11 2010 +0100

    GtkCssProvider: Render inconsistent toggle buttons differently.

 gtk/gtkcssprovider.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index e98f604..f74d041 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3582,6 +3582,13 @@ gtk_css_provider_get_default (void)
         "  background-color: shade (@bg_color, 1.05);\n"
         "  border-color: shade (@bg_color, 0.8);\n"
         "}\n"
+        "\n"
+        "GtkToggleButton.button:inconsistent {\n"
+        "  border-style: outset;\n"
+        "  border-width: 1px;\n"
+        "  background-color: shade (@bg_color, 0.9);\n"
+        "  border-color: shade (@bg_color, 0.7);\n"
+        "}\n"
         "\n";
 
       provider = gtk_css_provider_new ();



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