summaryrefslogtreecommitdiffstats
path: root/examples/stopwatch/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-18 16:02:30 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-18 16:02:30 +0700
commit3140cdc4babcefc444f1c1d30eb0f5f4ed1df054 (patch)
treeb3ea963a73118d5f0bfd7d875ba776ee51466f9b /examples/stopwatch/src/main.rs
parent95acc1deb89c4e75b513edb0f4d53b83c7f75b30 (diff)
downloadiced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.tar.gz
iced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.tar.bz2
iced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.zip
Wire up styling to `Button` in `iced_native`
Diffstat (limited to '')
-rw-r--r--examples/stopwatch/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs
index dc8a4de7..e6743620 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()