Fix colors of disabled spin buttons (and maybe others)
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Fri, 19 Aug 2016 22:25:22 +0000 (00:25 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Fri, 19 Aug 2016 22:31:19 +0000 (00:31 +0200)
The insensitive state should not get a base color that's the same as the
enabled one, or the difference is not visible enough (only the text
color changes). In fact, since the goal of the entry modifications is to
aid visibility during user input, there is no reason to override the
insensitive colors.

Just inherit the insensitive colors of the global style.

Also fix a comment that was attached to the wrong declaration.

gtk2_ardour/clearlooks.rc.in

index 072d12452ba9bf1314b898373a574b8cfcd3e2b6..d1212515efbcf0e1a812dda581722268ff4a46a9 100644 (file)
@@ -127,8 +127,8 @@ style "default" = "medium_text"
 
   text[NORMAL]        = @texts
   text[PRELIGHT]      = @texts
-  text[ACTIVE]        = @fg_selected
-  text[INSENSITIVE]   = shade(0.7, @lightest) /* text color for focused selected text */
+  text[INSENSITIVE]   = shade(0.7, @lightest)
+  text[ACTIVE]        = @fg_selected          /* text color for focused selected text */
   text[SELECTED]      = @fg_selected          /* text color for non-focused selected text */
 
   #engine specific tweaks
@@ -151,13 +151,11 @@ style "entry"
 
   base[NORMAL]      = @bases
   base[PRELIGHT]    = @bases
-  base[INSENSITIVE] = @bases
   base[ACTIVE]      = @bases
   base[SELECTED]    = @bg_selected
 
   text[NORMAL]      = @texts
   text[PRELIGHT]    = @texts
-  text[INSENSITIVE] = shade (0.92, @texts)
   text[ACTIVE]      = @texts
   text[SELECTED]    = @fg_selected
 }