mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Add example NotificationToast to workspace
This commit is contained in:
parent
8bd4107423
commit
e902d5d917
1 changed files with 4 additions and 4 deletions
|
@ -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")))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue