diff options
author | 2024-01-20 12:25:07 +0100 | |
---|---|---|
committer | 2024-01-20 12:25:07 +0100 | |
commit | 370b2f6df799c948188d3949e34112258b2a8498 (patch) | |
tree | 925d98d94be0e82c34377a7e3f697eafc8d095a2 /widget/src/radio.rs | |
parent | b7b457a575cdd103915994f640c50262ce30a7c5 (diff) | |
download | iced-370b2f6df799c948188d3949e34112258b2a8498.tar.gz iced-370b2f6df799c948188d3949e34112258b2a8498.tar.bz2 iced-370b2f6df799c948188d3949e34112258b2a8498.zip |
Use `Default` implementation of `renderer::Quad`
Diffstat (limited to '')
-rw-r--r-- | widget/src/radio.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/widget/src/radio.rs b/widget/src/radio.rs index 0a33825f..a782812e 100644 --- a/widget/src/radio.rs +++ b/widget/src/radio.rs @@ -9,8 +9,7 @@ use crate::core::touch; use crate::core::widget; use crate::core::widget::tree::{self, Tree}; use crate::core::{ - Clipboard, Color, Element, Layout, Length, Pixels, Rectangle, Shell, Size, - Widget, + Clipboard, Element, Layout, Length, Pixels, Rectangle, Shell, Size, Widget, }; pub use iced_style::radio::{Appearance, StyleSheet}; @@ -315,7 +314,7 @@ where border_radius: (size / 2.0).into(), border_width: custom_style.border_width, border_color: custom_style.border_color, - shadow: Default::default(), + ..renderer::Quad::default() }, custom_style.background, ); @@ -330,9 +329,7 @@ where height: bounds.height - dot_size, }, border_radius: (dot_size / 2.0).into(), - border_width: 0.0, - border_color: Color::TRANSPARENT, - shadow: Default::default(), + ..renderer::Quad::default() }, custom_style.dot_color, ); |