diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-05 22:53:10 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-05 22:53:10 +0200 |
commit | 78dcb6d388155454cfd042072419eb03080ad57d (patch) | |
tree | 73c0eb31abfa00c999ec500e3c9f8ebcf335913c /src/ui/widget.c | |
parent | b9d8c68236b14bda918e3089f5965fdfd60ecba4 (diff) |
UI color tuning; menu item backgrounds
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index a676da6e..bb5431eb 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -687,7 +687,9 @@ void drawBackground_Widget(const iWidget *d) { | |||
687 | drawHLine_Paint(&p, topLeft_Rect(rect), width_Rect(rect), uiBackgroundFramelessHover_ColorId); | 687 | drawHLine_Paint(&p, topLeft_Rect(rect), width_Rect(rect), uiBackgroundFramelessHover_ColorId); |
688 | } | 688 | } |
689 | /* Popup menus have a shadowed border. */ | 689 | /* Popup menus have a shadowed border. */ |
690 | if (d->flags & keepOnTop_WidgetFlag && ~d->flags & mouseModal_WidgetFlag) { | 690 | const iBool shadowBorder = |
691 | (d->flags & keepOnTop_WidgetFlag && ~d->flags & mouseModal_WidgetFlag) != 0; | ||
692 | if (shadowBorder) { | ||
691 | iPaint p; | 693 | iPaint p; |
692 | init_Paint(&p); | 694 | init_Paint(&p); |
693 | const iBool isLight = isLight_ColorTheme(colorTheme_App()); | 695 | const iBool isLight = isLight_ColorTheme(colorTheme_App()); |