summaryrefslogtreecommitdiff
path: root/src/ui/widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r--src/ui/widget.c8
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;