diff options
author | 2020-07-10 07:41:31 +0200 | |
---|---|---|
committer | 2020-07-10 07:41:31 +0200 | |
commit | 94383d82a5d080a28de025fadc6b7ba27e37927d (patch) | |
tree | ba950201b684401a9e060b6b96f176c9cc7b4138 /examples/game_of_life/src/main.rs | |
parent | b64e0ea5e31e718e435b24244119f59f7128bc27 (diff) | |
download | iced-94383d82a5d080a28de025fadc6b7ba27e37927d.tar.gz iced-94383d82a5d080a28de025fadc6b7ba27e37927d.tar.bz2 iced-94383d82a5d080a28de025fadc6b7ba27e37927d.zip |
Style `PickList` in `game_of_life` example
Diffstat (limited to 'examples/game_of_life/src/main.rs')
-rw-r--r-- | examples/game_of_life/src/main.rs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index 4663ae72..27d4eec1 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -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) |