diff options
| author | 2021-10-31 16:53:18 +0700 | |
|---|---|---|
| committer | 2021-10-31 16:53:18 +0700 | |
| commit | d36ce33a95c277ee8fe45555df17daf21ef02ef8 (patch) | |
| tree | 57bc16dda40405c33447bb59a78a4ba33adef7f2 /examples/stopwatch/src | |
| parent | 661cb5736ecc6e7810591216aa541db582a2fcc0 (diff) | |
| download | iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.gz iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.bz2 iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.zip | |
Reintroduce `Box` for `style_sheet` in `Button`
Diffstat (limited to '')
| -rw-r--r-- | examples/stopwatch/src/main.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs index e6743620..dc8a4de7 100644 --- a/examples/stopwatch/src/main.rs +++ b/examples/stopwatch/src/main.rs @@ -112,15 +112,15 @@ impl Application for Stopwatch {          let toggle_button = {              let (label, color) = match self.state { -                State::Idle => ("Start", &style::Button::Primary), -                State::Ticking { .. } => ("Stop", &style::Button::Destructive), +                State::Idle => ("Start", style::Button::Primary), +                State::Ticking { .. } => ("Stop", style::Button::Destructive),              };              button(&mut self.toggle, label, color).on_press(Message::Toggle)          };          let reset_button = -            button(&mut self.reset, "Reset", &style::Button::Secondary) +            button(&mut self.reset, "Reset", style::Button::Secondary)                  .on_press(Message::Reset);          let controls = Row::new() | 
