[gtk+/gtk-style-context] GtkCssProvider: use selected fg/bg for selected menu items in CSS.



commit 8052c1e9b027c60af1ef881e9682b6c07b3650f8
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 22 21:43:44 2010 +0100

    GtkCssProvider: use selected fg/bg for selected menu items in CSS.

 gtk/gtkcssprovider.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 1226d83..e293ae5 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3559,6 +3559,12 @@ gtk_css_provider_get_default (void)
         "  border-style: outset;\n"
         "  border-width: 1;\n"
         "}\n"
+        "\n"
+        ".menu:hover,\n"
+        ".menubar:hover {\n"
+        "  background-color: @selected_bg_color;\n"
+        "  color: @selected_fg_color;\n"
+        "}\n"
         "\n";
 
       provider = gtk_css_provider_new ();



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