Style PickList in game_of_life example

This commit is contained in:
Héctor Ramón Jiménez 2020-07-10 07:41:31 +02:00
parent b64e0ea5e3
commit 94383d82a5
3 changed files with 75 additions and 16 deletions

View file

@ -842,12 +842,17 @@ impl Controls {
.spacing(5)
.text_size(16),
)
.push(PickList::new(
&mut self.preset_list,
preset::ALL,
Some(preset),
Message::PresetPicked,
))
.push(
PickList::new(
&mut self.preset_list,
preset::ALL,
Some(preset),
Message::PresetPicked,
)
.padding(8)
.text_size(16)
.style(style::PickList),
)
.push(
Button::new(&mut self.clear_button, Text::new("Clear"))
.on_press(Message::Clear)