diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 15:45:24 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 15:45:24 +0200 |
commit | b0158f4246125cd44d2eb212c1c1d29fdcc2b54c (patch) | |
tree | 9922beca9a19337dfb86cc14e9362745066b21cf /src/ui/widget.c | |
parent | 316b3cdc61984f0a8afd2d9a96c563d034c86444 (diff) |
Draw soft popup menu border shadows
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index fa0a20c9..81853c2a 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -858,13 +858,7 @@ void drawBackground_Widget(const iWidget *d) { | |||
858 | if (shadowBorder) { | 858 | if (shadowBorder) { |
859 | iPaint p; | 859 | iPaint p; |
860 | init_Paint(&p); | 860 | init_Paint(&p); |
861 | const iBool isLight = isLight_ColorTheme(colorTheme_App()); | 861 | drawSoftShadow_Paint(&p, bounds_Widget(d), 12 * gap_UI, black_ColorId, 30); |
862 | p.alpha = isLight ? 0xc : 0x20; | ||
863 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_BLEND); | ||
864 | iRect shadowRect = expanded_Rect(bounds_Widget(d), mulf_I2(gap2_UI, 8)); | ||
865 | // shadowRect.pos.y += gap_UI * 4; | ||
866 | fillRect_Paint(&p, shadowRect, /*isLight ? white_ColorId :*/ black_ColorId); | ||
867 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_NONE); | ||
868 | } | 862 | } |
869 | if (fadeBackground) { | 863 | if (fadeBackground) { |
870 | iPaint p; | 864 | iPaint p; |