summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/color.c33
-rw-r--r--src/ui/labelwidget.c2
2 files changed, 18 insertions, 17 deletions
diff --git a/src/ui/color.c b/src/ui/color.c
index 656de6f0..e6ed7515 100644
--- a/src/ui/color.c
+++ b/src/ui/color.c
@@ -85,6 +85,7 @@ void setThemePalette_Color(enum iColorTheme theme) {
85 const int accentLo = (prefs->accent == cyan_ColorAccent ? teal_ColorId : brown_ColorId); 85 const int accentLo = (prefs->accent == cyan_ColorAccent ? teal_ColorId : brown_ColorId);
86 const int altAccentHi = (prefs->accent == cyan_ColorAccent ? orange_ColorId : cyan_ColorId); 86 const int altAccentHi = (prefs->accent == cyan_ColorAccent ? orange_ColorId : cyan_ColorId);
87 const int altAccentLo = (prefs->accent == cyan_ColorAccent ? brown_ColorId : teal_ColorId); 87 const int altAccentLo = (prefs->accent == cyan_ColorAccent ? brown_ColorId : teal_ColorId);
88 const iColor accentMid = mix_Color(get_Color(accentHi), get_Color(accentLo), 0.5f);
88 const iColor altAccentMid = mix_Color(get_Color(altAccentHi), get_Color(altAccentLo), 0.5f); 89 const iColor altAccentMid = mix_Color(get_Color(altAccentHi), get_Color(altAccentLo), 0.5f);
89 switch (theme) { 90 switch (theme) {
90 case pureBlack_ColorTheme: { 91 case pureBlack_ColorTheme: {
@@ -124,16 +125,16 @@ void setThemePalette_Color(enum iColorTheme theme) {
124 copy_(uiInputTextFocused_ColorId, white_ColorId); 125 copy_(uiInputTextFocused_ColorId, white_ColorId);
125 copy_(uiInputFrame_ColorId, gray25_ColorId); 126 copy_(uiInputFrame_ColorId, gray25_ColorId);
126 copy_(uiInputFrameHover_ColorId, accentHi); 127 copy_(uiInputFrameHover_ColorId, accentHi);
127 set_Color(uiInputFrameFocused_ColorId, altAccentMid); 128 copy_(uiInputFrameFocused_ColorId, accentLo);
128 copy_(uiInputCursor_ColorId, altAccentHi); 129 copy_(uiInputCursor_ColorId, accentHi);
129 copy_(uiInputCursorText_ColorId, black_ColorId); 130 copy_(uiInputCursorText_ColorId, black_ColorId);
130 copy_(uiHeading_ColorId, accentHi); 131 copy_(uiHeading_ColorId, accentHi);
131 copy_(uiAnnotation_ColorId, accentLo); 132 copy_(uiAnnotation_ColorId, accentLo);
132 copy_(uiIcon_ColorId, accentHi); 133 copy_(uiIcon_ColorId, accentHi);
133 copy_(uiIconHover_ColorId, accentHi); 134 copy_(uiIconHover_ColorId, accentHi);
134 copy_(uiSeparator_ColorId, gray25_ColorId); 135 copy_(uiSeparator_ColorId, gray25_ColorId);
135 copy_(uiMarked_ColorId, altAccentLo); 136 copy_(uiMarked_ColorId, accentLo);
136 copy_(uiMatching_ColorId, accentLo); 137 copy_(uiMatching_ColorId, altAccentLo);
137 break; 138 break;
138 } 139 }
139 default: 140 default:
@@ -177,16 +178,16 @@ void setThemePalette_Color(enum iColorTheme theme) {
177 get_Color(altAccentHi), 0.15f)); 178 get_Color(altAccentHi), 0.15f));
178 copy_(uiInputFrame_ColorId, uiInputBackground_ColorId); 179 copy_(uiInputFrame_ColorId, uiInputBackground_ColorId);
179 copy_(uiInputFrameHover_ColorId, accentHi); 180 copy_(uiInputFrameHover_ColorId, accentHi);
180 set_Color(uiInputFrameFocused_ColorId, altAccentMid); 181 copy_(uiInputFrameFocused_ColorId, accentLo);
181 copy_(uiInputCursor_ColorId, altAccentHi); 182 copy_(uiInputCursor_ColorId, accentHi);
182 copy_(uiInputCursorText_ColorId, black_ColorId); 183 copy_(uiInputCursorText_ColorId, black_ColorId);
183 copy_(uiHeading_ColorId, accentHi); 184 copy_(uiHeading_ColorId, accentHi);
184 copy_(uiAnnotation_ColorId, accentLo); 185 copy_(uiAnnotation_ColorId, accentLo);
185 copy_(uiIcon_ColorId, accentHi); 186 copy_(uiIcon_ColorId, accentHi);
186 copy_(uiIconHover_ColorId, accentHi); 187 copy_(uiIconHover_ColorId, accentHi);
187 copy_(uiSeparator_ColorId, black_ColorId); 188 copy_(uiSeparator_ColorId, black_ColorId);
188 copy_(uiMarked_ColorId, altAccentLo); 189 copy_(uiMarked_ColorId, accentLo);
189 copy_(uiMatching_ColorId, accentLo); 190 copy_(uiMatching_ColorId, altAccentLo);
190 break; 191 break;
191 } 192 }
192 case light_ColorTheme: 193 case light_ColorTheme:
@@ -227,8 +228,8 @@ void setThemePalette_Color(enum iColorTheme theme) {
227 set_Color(uiInputFrame_ColorId, 228 set_Color(uiInputFrame_ColorId,
228 mix_Color(get_Color(gray50_ColorId), get_Color(gray75_ColorId), 0.5f)); 229 mix_Color(get_Color(gray50_ColorId), get_Color(gray75_ColorId), 0.5f));
229 copy_(uiInputFrameHover_ColorId, accentLo); 230 copy_(uiInputFrameHover_ColorId, accentLo);
230 copy_(uiInputFrameFocused_ColorId, altAccentLo); 231 copy_(uiInputFrameFocused_ColorId, accentLo);
231 copy_(uiInputCursor_ColorId, altAccentLo); 232 copy_(uiInputCursor_ColorId, accentLo);
232 copy_(uiInputCursorText_ColorId, white_ColorId); 233 copy_(uiInputCursorText_ColorId, white_ColorId);
233 copy_(uiHeading_ColorId, accentLo); 234 copy_(uiHeading_ColorId, accentLo);
234 copy_(uiAnnotation_ColorId, gray50_ColorId); 235 copy_(uiAnnotation_ColorId, gray50_ColorId);
@@ -236,8 +237,8 @@ void setThemePalette_Color(enum iColorTheme theme) {
236 copy_(uiIconHover_ColorId, accentLo); 237 copy_(uiIconHover_ColorId, accentLo);
237 set_Color(uiSeparator_ColorId, 238 set_Color(uiSeparator_ColorId,
238 mix_Color(get_Color(gray50_ColorId), get_Color(gray75_ColorId), 0.5f)); 239 mix_Color(get_Color(gray50_ColorId), get_Color(gray75_ColorId), 0.5f));
239 copy_(uiMarked_ColorId, altAccentHi); 240 copy_(uiMarked_ColorId, accentHi);
240 copy_(uiMatching_ColorId, accentHi); 241 copy_(uiMatching_ColorId, altAccentHi);
241 break; 242 break;
242 case pureWhite_ColorTheme: 243 case pureWhite_ColorTheme:
243 copy_(uiBackground_ColorId, white_ColorId); 244 copy_(uiBackground_ColorId, white_ColorId);
@@ -278,8 +279,8 @@ void setThemePalette_Color(enum iColorTheme theme) {
278 copy_(uiInputTextFocused_ColorId, black_ColorId); 279 copy_(uiInputTextFocused_ColorId, black_ColorId);
279 copy_(uiInputFrame_ColorId, gray50_ColorId); 280 copy_(uiInputFrame_ColorId, gray50_ColorId);
280 copy_(uiInputFrameHover_ColorId, accentLo); 281 copy_(uiInputFrameHover_ColorId, accentLo);
281 copy_(uiInputFrameFocused_ColorId, altAccentLo); 282 copy_(uiInputFrameFocused_ColorId, accentLo);
282 copy_(uiInputCursor_ColorId, altAccentLo); 283 copy_(uiInputCursor_ColorId, accentLo);
283 copy_(uiInputCursorText_ColorId, white_ColorId); 284 copy_(uiInputCursorText_ColorId, white_ColorId);
284 copy_(uiHeading_ColorId, accentLo); 285 copy_(uiHeading_ColorId, accentLo);
285 copy_(uiAnnotation_ColorId, gray50_ColorId); 286 copy_(uiAnnotation_ColorId, gray50_ColorId);
@@ -287,8 +288,8 @@ void setThemePalette_Color(enum iColorTheme theme) {
287 copy_(uiIconHover_ColorId, accentLo); 288 copy_(uiIconHover_ColorId, accentLo);
288 set_Color(uiSeparator_ColorId, 289 set_Color(uiSeparator_ColorId,
289 mix_Color(get_Color(gray50_ColorId), get_Color(gray75_ColorId), 0.67f)); 290 mix_Color(get_Color(gray50_ColorId), get_Color(gray75_ColorId), 0.67f));
290 copy_(uiMarked_ColorId, altAccentHi); 291 copy_(uiMarked_ColorId, accentHi);
291 copy_(uiMatching_ColorId, accentHi); 292 copy_(uiMatching_ColorId, altAccentHi);
292 break; 293 break;
293 } 294 }
294 set_Color(uiSubheading_ColorId, 295 set_Color(uiSubheading_ColorId,
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index d48ed9e8..30eb1d36 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -226,7 +226,7 @@ static void getColors_LabelWidget_(const iLabelWidget *d, int *bg, int *fg, int
226 } 226 }
227 } 227 }
228 if (isFocus) { 228 if (isFocus) {
229 *frame1 = *frame2 = uiInputFrameFocused_ColorId; 229 *frame1 = *frame2 = (isSel ? uiText_ColorId : uiInputFrameFocused_ColorId);
230 } 230 }
231 int colorEscape = none_ColorId; 231 int colorEscape = none_ColorId;
232 if (startsWith_String(&d->label, "\v")) { 232 if (startsWith_String(&d->label, "\v")) {