[gtk+/gtk-style-context: 413/490] Fix checkbuttons theming in CSS so it's more similar to 2.x
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 413/490] Fix checkbuttons theming in CSS so it's more similar to 2.x
- Date: Wed, 24 Nov 2010 14:14:24 +0000 (UTC)
commit b504040d35b2810772d0b806c834023022948676
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 d8faebf..ba40dd8 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]