summaryrefslogtreecommitdiffstats
path: root/widget/src/button.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/button.rs')
-rw-r--r--widget/src/button.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/widget/src/button.rs b/widget/src/button.rs
index f052ebab..cd141169 100644
--- a/widget/src/button.rs
+++ b/widget/src/button.rs
@@ -391,11 +391,15 @@ where
style_sheet.active(style)
};
- if styling.background.is_some() || styling.border.width > 0.0 {
+ if styling.background.is_some()
+ || styling.shadow.color.a > 0.0
+ || styling.border.width > 0.0
+ {
renderer.fill_quad(
renderer::Quad {
bounds,
border: styling.border,
+ shadow: styling.shadow,
..renderer::Quad::default()
},
styling