summaryrefslogtreecommitdiffstats
path: root/examples/stopwatch
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 15:21:42 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 15:21:42 +0100
commit44f002f64a9d53040f09affe69bd92675e302e16 (patch)
treeae7df604a8926a431b63c8ad27910de3ec54342d /examples/stopwatch
parent4489af7bfdae32f8bec7c9b2aeaf1b406db696ea (diff)
downloadiced-44f002f64a9d53040f09affe69bd92675e302e16.tar.gz
iced-44f002f64a9d53040f09affe69bd92675e302e16.tar.bz2
iced-44f002f64a9d53040f09affe69bd92675e302e16.zip
Rename `positive` and `destructive` to `success` and `danger` in `button`
Diffstat (limited to 'examples/stopwatch')
-rw-r--r--examples/stopwatch/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs
index 7a097e90..56b7686e 100644
--- a/examples/stopwatch/src/main.rs
+++ b/examples/stopwatch/src/main.rs
@@ -136,7 +136,7 @@ impl Application for Stopwatch {
};
let reset_button = button("Reset")
- .style(button::destructive)
+ .style(button::danger)
.on_press(Message::Reset);
let controls = row![toggle_button, reset_button].spacing(20);