new style for Gtk::Entry widgets
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 30 Jun 2016 21:38:20 +0000 (17:38 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 30 Jun 2016 21:41:11 +0000 (17:41 -0400)
More legibility and easier to figure out what colors are used for what

gtk2_ardour/clearlooks.rc.in

index af36a3f4f47d51a45f15f2892df1645f2115fd54..4c7bcef5dd2061399ea3dab92cefb0357a2e16fc 100644 (file)
@@ -146,6 +146,28 @@ style "default" = "medium_text"
   }
 }
 
+style "entry"
+{
+  # setting these two to zero avoids the focus indicator around the text
+
+  xthickness = 0
+  ythickness = 0
+
+  # special base + text for GtkEntry to aid with visibility during text entry
+
+  base[NORMAL]      = @entry_base
+  base[PRELIGHT]    = @entry_base
+  base[INSENSITIVE] = @entry_base
+  base[ACTIVE]      = @entry_base_selected /* base for focused, selected text */
+  base[SELECTED]    = @entry_base_selected   /* base for non-focused, selected text */
+
+  text[NORMAL]      = @entry_text
+  text[PRELIGHT]    = @entry_text
+  text[INSENSITIVE] = shade (0.92, @entry_text)
+  text[ACTIVE]      = @entry_text_selected
+  text[SELECTED]    = @entry_text_selected
+}
+
 style "treeview_parent_node"
 {
        # specifies *just* the color used for whole file rows when not selected