Merge branch 'main' into collab-panel
This commit is contained in:
commit
111e17b220
54 changed files with 1233 additions and 679 deletions
|
@ -2564,7 +2564,7 @@ impl Workspace {
|
|||
};
|
||||
|
||||
enum TitleBar {}
|
||||
MouseEventHandler::<TitleBar, _>::new(0, cx, |_, cx| {
|
||||
MouseEventHandler::new::<TitleBar, _>(0, cx, |_, cx| {
|
||||
Stack::new()
|
||||
.with_children(
|
||||
self.titlebar_item
|
||||
|
@ -2653,7 +2653,7 @@ impl Workspace {
|
|||
if self.project.read(cx).is_read_only() {
|
||||
enum DisconnectedOverlay {}
|
||||
Some(
|
||||
MouseEventHandler::<DisconnectedOverlay, _>::new(0, cx, |_, cx| {
|
||||
MouseEventHandler::new::<DisconnectedOverlay, _>(0, cx, |_, cx| {
|
||||
let theme = &theme::current(cx);
|
||||
Label::new(
|
||||
"Your connection to the remote project has been lost.",
|
||||
|
@ -3763,7 +3763,7 @@ impl View for Workspace {
|
|||
// Prevent clicks within the modal from falling
|
||||
// through to the rest of the workspace.
|
||||
enum ModalBackground {}
|
||||
MouseEventHandler::<ModalBackground, _>::new(
|
||||
MouseEventHandler::new::<ModalBackground, _>(
|
||||
0,
|
||||
cx,
|
||||
|_, cx| ChildView::new(modal.view.as_any(), cx),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue