summaryrefslogtreecommitdiffstats
path: root/widget/src/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-20 12:25:07 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-20 12:25:07 +0100
commit370b2f6df799c948188d3949e34112258b2a8498 (patch)
tree925d98d94be0e82c34377a7e3f697eafc8d095a2 /widget/src/button.rs
parentb7b457a575cdd103915994f640c50262ce30a7c5 (diff)
downloadiced-370b2f6df799c948188d3949e34112258b2a8498.tar.gz
iced-370b2f6df799c948188d3949e34112258b2a8498.tar.bz2
iced-370b2f6df799c948188d3949e34112258b2a8498.zip
Use `Default` implementation of `renderer::Quad`
Diffstat (limited to 'widget/src/button.rs')
-rw-r--r--widget/src/button.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/widget/src/button.rs b/widget/src/button.rs
index 44628a6a..f9e59f23 100644
--- a/widget/src/button.rs
+++ b/widget/src/button.rs
@@ -402,9 +402,7 @@ where
..bounds
},
border_radius: styling.border_radius,
- border_width: 0.0,
- border_color: Color::TRANSPARENT,
- shadow: Default::default(),
+ ..renderer::Quad::default()
},
Background::Color([0.0, 0.0, 0.0, 0.5].into()),
);
@@ -416,7 +414,7 @@ where
border_radius: styling.border_radius,
border_width: styling.border_width,
border_color: styling.border_color,
- shadow: Default::default(),
+ ..renderer::Quad::default()
},
styling
.background