summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-05 14:10:50 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-05 14:11:03 +0200
commit06245e4ec4058a4f968bbd27c5e3361425a5d1b4 (patch)
treee99065684ded23b666f6521507e723b21684c67e /src/ui/labelwidget.c
parent5f7785b30f48a4d9c9784d332ba020d182b18f2c (diff)
Cleanup
Post merge.
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r--src/ui/labelwidget.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index 89e95c85..3454014a 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -226,8 +226,13 @@ static void getColors_LabelWidget_(const iLabelWidget *d, int *bg, int *fg, int
226 *meta = uiTextDisabled_ColorId; 226 *meta = uiTextDisabled_ColorId;
227 } 227 }
228 if (isSel) { 228 if (isSel) {
229 if (!d->flags.checkMark) { 229 if (!d->flags.checkMark) {
230 *bg = uiBackgroundSelected_ColorId; 230 if (isMenuItem) {
231 *bg = uiBackgroundUnfocusedSelection_ColorId;
232 }
233 else {
234 *bg = uiBackgroundSelected_ColorId;
235 }
231 if (!isKeyRoot) { 236 if (!isKeyRoot) {
232 *bg = isDark_ColorTheme(colorTheme_App()) ? uiBackgroundUnfocusedSelection_ColorId 237 *bg = isDark_ColorTheme(colorTheme_App()) ? uiBackgroundUnfocusedSelection_ColorId
233 : uiMarked_ColorId; 238 : uiMarked_ColorId;