Rename positive and destructive to success and danger in button
This commit is contained in:
parent
4489af7bfd
commit
44f002f64a
7 changed files with 11 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue