[gtk+/gtk-style-context: 413/540] Fix checkbuttons theming in CSS so it's more similar to 2.x



commit d35f27f43cd9ff1cd7d0ea23dd91757d521ea032
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Nov 19 19:20:12 2010 +0100

    Fix checkbuttons theming in CSS so it's more similar to 2.x

 gtk/gtkcssprovider.c |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 05728c8..666fb6e 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3216,9 +3216,26 @@ gtk_css_provider_get_default (void)
         "  border-color: shade (@selected_bg_color, 0.7);\n"
         "}\n"
         "\n"
-        ".check, .radio {\n"
+        "GtkCheckButton:hover,\n"
+        "GtkCheckButton:selected,\n"
+        "GtkRadioButton:hover,\n"
+        "GtkRadioButton:selected {\n"
+        "  background-color: lighter (@bg_color);\n"
+        "}\n"
+        "\n"
+        ".check, .radio,\n"
+        ".check:active, .radio:active,\n"
+        ".check:hover, .radio:hover {\n"
         "  background-color: @base_color;\n"
-        "  color: @text_color;\n"
+        "  border-color: @fg_color;\n"
+	"  color: @text_color;\n"
+        "  border-style: solid;\n"
+        "  border-width: 1;\n"
+        "}\n"
+        "\n"
+        ".check:selected, .radio:selected {\n"
+        "  background-color: @selected_bg_color;\n"
+        "  color: @selected_fg_color;\n"
         "}\n"
         "\n"
         ".menu.check, .menu.radio {\n"



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