Rename positive and destructive to success and danger in button

This commit is contained in:
Héctor Ramón Jiménez 2024-03-07 15:21:42 +01:00
parent 4489af7bfd
commit 44f002f64a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 11 additions and 11 deletions

View file

@ -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),