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



commit f28163781ec85b9f7c7a27a00502514a8a07f9dc
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]