diff options
-rw-r--r-- | src/ui/widget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 2d964445..d7543615 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -703,10 +703,11 @@ void drawBackground_Widget(const iWidget *d) { | |||
703 | iPaint p; | 703 | iPaint p; |
704 | init_Paint(&p); | 704 | init_Paint(&p); |
705 | const iBool isLight = isLight_ColorTheme(colorTheme_App()); | 705 | const iBool isLight = isLight_ColorTheme(colorTheme_App()); |
706 | p.alpha = isLight ? 0x40 : 0x20; | 706 | p.alpha = isLight ? 0xc : 0x20; |
707 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_BLEND); | 707 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_BLEND); |
708 | iRect shadowRect = expanded_Rect(bounds_Widget(d), mulf_I2(gap2_UI, 1)); | 708 | iRect shadowRect = expanded_Rect(bounds_Widget(d), mulf_I2(gap2_UI, 1)); |
709 | fillRect_Paint(&p, shadowRect, isLight ? white_ColorId : black_ColorId); | 709 | shadowRect.pos.y += gap_UI / 4; |
710 | fillRect_Paint(&p, shadowRect, /*isLight ? white_ColorId :*/ black_ColorId); | ||
710 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_NONE); | 711 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_NONE); |
711 | } | 712 | } |
712 | if (fadeBackground) { | 713 | if (fadeBackground) { |