Fix colors of disabled spin buttons (and maybe others)
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.
This commit is contained in:
parent
d1ed84e44e
commit
23ccf48c28
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user