Add example NotificationToast to workspace

This commit is contained in:
Nate Butler 2023-10-13 11:47:05 -04:00
parent 8bd4107423
commit e902d5d917

View file

@ -268,10 +268,10 @@ impl Workspace {
.child(Toast::new(ToastOrigin::Bottom).child(Label::new("A toast")))
// .child(Toast::new(ToastOrigin::BottomRight).child(Label::new("Another toast")))
.child(NotificationToast::new(
"A notification",
"This is a notification",
Button::new("Primary"),
))
"Can't pull changes from origin",
"Your local branch is behind the remote branch. Please pull the latest changes before pushing.",
Button::new("Stash & Switch").variant(ButtonVariant::Filled),
).secondary_action(Button::new("Cancel")))
}
}