From e5464259ffe9a6834ee1f4913965089112e9eecb Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 5 Dec 2021 22:04:44 +0200 Subject: Widget: Added flag to always fade the background --- src/ui/widget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/widget.c') diff --git a/src/ui/widget.c b/src/ui/widget.c index bb3a39f1..9f1c8640 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c @@ -1393,7 +1393,8 @@ void drawLayerEffects_Widget(const iWidget *d) { shadowBorder = iFalse; } } - const iBool isFaded = fadeBackground && ~d->flags & noFadeBackground_WidgetFlag; + const iBool isFaded = (fadeBackground && ~d->flags & noFadeBackground_WidgetFlag) || + (d->flags2 & fadeBackground_WidgetFlag2); if (shadowBorder && ~d->flags & noShadowBorder_WidgetFlag) { iPaint p; init_Paint(&p); -- cgit v1.2.3