diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-26 19:25:34 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-26 19:25:34 +0300 |
commit | 12d4ec900bfb57041571ab71f7e09e5d8b818174 (patch) | |
tree | ed4b6244ed8e0cc79676be3a9eb18e9e4f58b7d2 /src/ui/labelwidget.c | |
parent | c8afe01adf5b6c5e0a0313b5a91279cbdc7079d7 (diff) |
LabelWidget: Separate color for disabled buttons
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r-- | src/ui/labelwidget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index ffdacb99..d41cc73c 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -155,6 +155,9 @@ static void getColors_LabelWidget_(const iLabelWidget *d, int *bg, int *fg, int | |||
155 | *fg = uiText_ColorId; | 155 | *fg = uiText_ColorId; |
156 | *frame1 = isButton ? uiEmboss1_ColorId : uiFrame_ColorId; | 156 | *frame1 = isButton ? uiEmboss1_ColorId : uiFrame_ColorId; |
157 | *frame2 = isButton ? uiEmboss2_ColorId : *frame1; | 157 | *frame2 = isButton ? uiEmboss2_ColorId : *frame1; |
158 | if (flags_Widget(w) & disabled_WidgetFlag && isButton) { | ||
159 | *fg = uiTextDisabled_ColorId; | ||
160 | } | ||
158 | if (isSel) { | 161 | if (isSel) { |
159 | *bg = uiBackgroundSelected_ColorId; | 162 | *bg = uiBackgroundSelected_ColorId; |
160 | *fg = uiTextSelected_ColorId; | 163 | *fg = uiTextSelected_ColorId; |