summaryrefslogtreecommitdiffstats
path: root/examples/game_of_life
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-31 16:53:18 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-31 16:53:18 +0700
commitd36ce33a95c277ee8fe45555df17daf21ef02ef8 (patch)
tree57bc16dda40405c33447bb59a78a4ba33adef7f2 /examples/game_of_life
parent661cb5736ecc6e7810591216aa541db582a2fcc0 (diff)
downloadiced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.gz
iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.bz2
iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.zip
Reintroduce `Box` for `style_sheet` in `Button`
Diffstat (limited to 'examples/game_of_life')
-rw-r--r--examples/game_of_life/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs
index 2c027421..3b5bfa5a 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -834,12 +834,12 @@ impl Controls {
Text::new(if is_playing { "Pause" } else { "Play" }),
)
.on_press(Message::TogglePlayback)
- .style(&style::Button),
+ .style(style::Button),
)
.push(
Button::new(&mut self.next_button, Text::new("Next"))
.on_press(Message::Next)
- .style(&style::Button),
+ .style(style::Button),
);
let speed_controls = Row::new()
@@ -883,7 +883,7 @@ impl Controls {
.push(
Button::new(&mut self.clear_button, Text::new("Clear"))
.on_press(Message::Clear)
- .style(&style::Clear),
+ .style(style::Clear),
)
.into()
}