Implement theme styling for Radio

This commit is contained in:
Héctor Ramón Jiménez 2022-05-27 01:26:57 +02:00
parent d988d813d7
commit 28d09bfff1
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
10 changed files with 86 additions and 157 deletions

View file

@ -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,
))
},
);