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
|
|
@ -180,7 +180,7 @@ impl Sandbox for App {
|
|||
column(items.into_iter().map(|item| {
|
||||
let button = button("Delete")
|
||||
.on_press(Message::DeleteItem(item.clone()))
|
||||
.style(button::destructive);
|
||||
.style(button::danger);
|
||||
|
||||
row![
|
||||
text(&item.name).color(item.color),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue