diff options
author | 2022-05-27 01:26:57 +0200 | |
---|---|---|
committer | 2022-05-27 01:29:36 +0200 | |
commit | 28d09bfff1dde55190986bab10d7aaeb0ceb49de (patch) | |
tree | df38cec7242de571d94378cd736a05bc82a622c2 /examples/scrollable/src/main.rs | |
parent | d988d813d77bc23147a179586206048e6cc42157 (diff) | |
download | iced-28d09bfff1dde55190986bab10d7aaeb0ceb49de.tar.gz iced-28d09bfff1dde55190986bab10d7aaeb0ceb49de.tar.bz2 iced-28d09bfff1dde55190986bab10d7aaeb0ceb49de.zip |
Implement theme styling for `Radio`
Diffstat (limited to 'examples/scrollable/src/main.rs')
-rw-r--r-- | examples/scrollable/src/main.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index 8e027504..e49aa63b 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -69,15 +69,12 @@ impl Sandbox for ScrollableDemo { let choose_theme = style::Theme::ALL.iter().fold( Column::new().spacing(10).push(Text::new("Choose a theme:")), |column, option| { - column.push( - Radio::new( - *option, - format!("{:?}", option), - Some(*theme), - Message::ThemeChanged, - ) - .style(*theme), - ) + column.push(Radio::new( + *option, + format!("{:?}", option), + Some(*theme), + Message::ThemeChanged, + )) }, ); |