summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-02 07:08:04 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-02 07:08:04 +0300
commit6d297b8ec945a62d66c530b0b9b19202e1b18cff (patch)
tree3d013154545a4aed05b9576dac7c69c56f3ba860 /src
parent5fb32fcfca41d2e1b6eaaacaa6b6b37fc9e6d0b1 (diff)
LabelWidget: Styling of pressed buttons
Diffstat (limited to 'src')
-rw-r--r--src/ui/labelwidget.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index 54341a87..d3eaed11 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -132,10 +132,10 @@ static void draw_LabelWidget_(const iLabelWidget *d) {
132 } 132 }
133 iPaint p; 133 iPaint p;
134 init_Paint(&p); 134 init_Paint(&p);
135 int bg = 0; 135 int bg = 0;
136 int fg = gray75_ColorId; 136 int fg = gray75_ColorId;
137 int frame = isButton ? gray50_ColorId : gray25_ColorId; 137 int frame = isButton ? gray50_ColorId : gray25_ColorId;
138 int frame2 = isButton ? black_ColorId : frame; 138 int frame2 = isButton ? black_ColorId : frame;
139 if (flags & selected_WidgetFlag) { 139 if (flags & selected_WidgetFlag) {
140 bg = teal_ColorId; 140 bg = teal_ColorId;
141 fg = white_ColorId; 141 fg = white_ColorId;
@@ -166,7 +166,10 @@ static void draw_LabelWidget_(const iLabelWidget *d) {
166 } 166 }
167 if (flags & pressed_WidgetFlag) { 167 if (flags & pressed_WidgetFlag) {
168 bg = orange_ColorId | permanent_ColorId; 168 bg = orange_ColorId | permanent_ColorId;
169 if (isButton) frame = bg; 169 if (isButton) {
170 frame = brown_ColorId;
171 frame2 = white_ColorId;
172 }
170 fg = black_ColorId | permanent_ColorId; 173 fg = black_ColorId | permanent_ColorId;
171 } 174 }
172 if (bg) { 175 if (bg) {