diff options
author | 2024-03-08 00:38:02 +0100 | |
---|---|---|
committer | 2024-03-08 00:38:02 +0100 | |
commit | 76627bb4815d7c14ffb75417e33e3f6afca5c844 (patch) | |
tree | bc6d12b8fe9b33c9bae22dca3595e905fad8f56a /examples/game_of_life | |
parent | f316755cdcaf632d91a9adbc80e93fda744fd16e (diff) | |
download | iced-76627bb4815d7c14ffb75417e33e3f6afca5c844.tar.gz iced-76627bb4815d7c14ffb75417e33e3f6afca5c844.tar.bz2 iced-76627bb4815d7c14ffb75417e33e3f6afca5c844.zip |
Group preset list and clear button in `game_of_life` example
Diffstat (limited to 'examples/game_of_life')
-rw-r--r-- | examples/game_of_life/src/main.rs | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index 0507a1ca..5ec1a11c 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -185,17 +185,14 @@ fn view_controls<'a>( row![ playback_controls, speed_controls, - checkbox("Grid", is_grid_enabled) - .on_toggle(Message::ToggleGrid) - .size(16) - .spacing(5) - .text_size(16), - pick_list(preset::ALL, Some(preset), Message::PresetPicked) - .padding(8) - .text_size(16), - button("Clear") - .on_press(Message::Clear) - .style(button::danger), + checkbox("Grid", is_grid_enabled).on_toggle(Message::ToggleGrid), + row![ + pick_list(preset::ALL, Some(preset), Message::PresetPicked), + button("Clear") + .on_press(Message::Clear) + .style(button::danger) + ] + .spacing(10) ] .padding(10) .spacing(20) |