From bf375587aa52808cdabf4191571f20784315ea99 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 20 Jan 2024 13:34:07 +0100 Subject: Add `Shadow` to `container::Appearance` --- widget/src/container.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'widget/src/container.rs') diff --git a/widget/src/container.rs b/widget/src/container.rs index b87f1d9f..f2d1aaba 100644 --- a/widget/src/container.rs +++ b/widget/src/container.rs @@ -337,12 +337,15 @@ pub fn draw_background( ) where Renderer: crate::core::Renderer, { - if appearance.background.is_some() || appearance.border.width > 0.0 { + if appearance.background.is_some() + || appearance.border.width > 0.0 + || appearance.shadow.color.a > 0.0 + { renderer.fill_quad( renderer::Quad { bounds, border: appearance.border, - ..renderer::Quad::default() + shadow: appearance.shadow, }, appearance .background -- cgit