diff options
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()); |