[gtk+/gtk-style-context: 419/540] GtkCssProvider: Base prelight foreground on bg color.



commit 3e18eb175e30e403b1c0cc3e5dc3331d49209a15
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 05ed5ae..a1020d7 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]