diff options
author | 2024-01-20 13:34:07 +0100 | |
---|---|---|
committer | 2024-01-20 13:34:07 +0100 | |
commit | bf375587aa52808cdabf4191571f20784315ea99 (patch) | |
tree | a723b82d7712fc775cce126b8e45e31bafd22e10 /widget/src/button.rs | |
parent | e736038d5ff9adb9c011326879d4c772338d12d9 (diff) | |
download | iced-bf375587aa52808cdabf4191571f20784315ea99.tar.gz iced-bf375587aa52808cdabf4191571f20784315ea99.tar.bz2 iced-bf375587aa52808cdabf4191571f20784315ea99.zip |
Add `Shadow` to `container::Appearance`
Diffstat (limited to 'widget/src/button.rs')
-rw-r--r-- | widget/src/button.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widget/src/button.rs b/widget/src/button.rs index cd141169..14626dd3 100644 --- a/widget/src/button.rs +++ b/widget/src/button.rs @@ -392,15 +392,14 @@ where }; if styling.background.is_some() - || styling.shadow.color.a > 0.0 || styling.border.width > 0.0 + || styling.shadow.color.a > 0.0 { renderer.fill_quad( renderer::Quad { bounds, border: styling.border, shadow: styling.shadow, - ..renderer::Quad::default() }, styling .background |