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::Bottom).child(Label::new("A toast")))
|
||||||
// .child(Toast::new(ToastOrigin::BottomRight).child(Label::new("Another toast")))
|
// .child(Toast::new(ToastOrigin::BottomRight).child(Label::new("Another toast")))
|
||||||
.child(NotificationToast::new(
|
.child(NotificationToast::new(
|
||||||
"A notification",
|
"Can't pull changes from origin",
|
||||||
"This is a notification",
|
"Your local branch is behind the remote branch. Please pull the latest changes before pushing.",
|
||||||
Button::new("Primary"),
|
Button::new("Stash & Switch").variant(ButtonVariant::Filled),
|
||||||
))
|
).secondary_action(Button::new("Cancel")))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue