[gtk+/gtk-style-context: 419/490] GtkCssProvider: Base prelight foreground on bg color.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 419/490] GtkCssProvider: Base prelight foreground on bg color.
- Date: Wed, 24 Nov 2010 14:14:54 +0000 (UTC)
commit 74d10ed89e9e91d82c436088fcaa0cf5300738bb
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Nov 19 22:46:07 2010 +0100
GtkCssProvider: Base prelight foreground on bg color.
Entries are also handled, so base/text colors are used.
gtk/gtkcssprovider.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 7565b36..dc6bf70 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3157,8 +3157,8 @@ gtk_css_provider_get_default (void)
"}\n"
"\n"
"*:insensitive {\n"
- " background-color: shade (@bg_color, 0.7);\n"
- " color: shade (@fg_color, 0.7);\n"
+ " background-color: shade (@bg_color, 0.9);\n"
+ " color: shade (@bg_color, 0.7);\n"
"}\n"
"\n"
"GtkTreeView, GtkIconView, GtkTextView {\n"
@@ -3210,6 +3210,11 @@ gtk_css_provider_get_default (void)
" color: @text_color;\n"
"}\n"
"\n"
+ ".entry:insensitive {\n"
+ " background-color: shade (@base_color, 0.9);\n"
+ " color: shade (@base_color, 0.7);\n"
+ "}\n"
+ "\n"
".progressbar,\n"
".entry.progressbar {\n"
" background-color: @selected_bg_color;\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]