[longomatch/newui: 23/157] Customize the menubar and children menus.



commit 6bd38c2dd1b6028fd42d6efe80c3a0c7d4b75493
Author: Julien Moutte <julien fluendo com>
Date:   Tue Aug 19 11:45:08 2014 +0200

    Customize the menubar and children menus.

 data/theme/gtk-2.0/gtkrc |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gtk-2.0/gtkrc b/data/theme/gtk-2.0/gtkrc
index d861c8a..6bd6208 100644
--- a/data/theme/gtk-2.0/gtkrc
+++ b/data/theme/gtk-2.0/gtkrc
@@ -192,16 +192,31 @@ style "longomatch-templates-treeview" {
   # Line color when active (default)
   base[ACTIVE]       = @active_color
   # Line color when selected
-  base[SELECTED]       = @active_color
+  base[SELECTED]     = @active_color
   text[NORMAL]       = @text_color
   text[SELECTED]     = @text_color
-  text[ACTIVE]     = @text_color
+  text[ACTIVE]       = @text_color
 
   # We can also customize odd/even row colors
   #GtkTreeView::odd_row_color      = "#5f5f5f"
   #GtkTreeView::even_row_color     = "#828282"
 }
- 
+
+style "longomatch-menubar" {
+  bg[NORMAL]           = @bg_light_color
+}
+
+style "longomatch-menuitem" {
+  # Text colors in their different states
+  fg[NORMAL]         = @text_color
+  fg[PRELIGHT]       = @text_color
+  fg[INSENSITIVE]    = @base_color
+  # Highlight menuitem in the menu
+  bg[SELECTED]       = @bg_light_color
+  # and in the menubar
+  bg[PRELIGHT]       = @bg_color
+}
+
 style "longomatch-filechooser-entry"
 {
    base[NORMAL] = @bg_color
@@ -323,6 +338,11 @@ style "longomatch-combobox" {
 
 class "GtkWidget"                                style "longomatch-default"
 class "GtkEntry"                                 style "longomatch-entry"
+# Background for the menubar
+class "GtkMenuBar"                               style "longomatch-menubar"
+# Text color for the menu items in the bar and the menus
+widget_class "*.GtkMenu.*"                       style "longomatch-menuitem"
+widget_class "*.GtkMenuBar.*"                    style "longomatch-menuitem"
 widget_class "*<GtkComboBox>"                    style "longomatch-combobox"
 #widget_class "*<GtkComboBox>*<GtkButton>"        style "longomatch-combobox-button"
 #widget_class "*<GtkComboBox>*<GtkEntry>"         style "longomatch-combobox-entry"


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