Implement theme styling for Radio
This commit is contained in:
parent
d988d813d7
commit
28d09bfff1
10 changed files with 86 additions and 157 deletions
|
|
@ -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,
|
||||
))
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue