mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Add a Toast
in the bottom-right corner
This commit is contained in:
parent
d3c79c7078
commit
f73708d725
1 changed files with 6 additions and 1 deletions
|
@ -183,7 +183,12 @@ impl<S: 'static + Send + Sync + Clone> WorkspaceElement<S> {
|
|||
.child(StatusBar::new())
|
||||
.child(Toast::new(
|
||||
ToastOrigin::Bottom,
|
||||
|_, _| vec![Label::new("label").into_any()],
|
||||
|_, _| vec![Label::new("A toast").into_any()],
|
||||
Box::new(()),
|
||||
))
|
||||
.child(Toast::new(
|
||||
ToastOrigin::BottomRight,
|
||||
|_, _| vec![Label::new("Another toast").into_any()],
|
||||
Box::new(()),
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue