WIP
This commit is contained in:
parent
81d83841ab
commit
499b8f5f55
13 changed files with 245 additions and 263 deletions
|
@ -201,21 +201,23 @@ impl Member {
|
|||
.right()
|
||||
.boxed(),
|
||||
),
|
||||
call::ParticipantLocation::External => Some(
|
||||
Label::new(
|
||||
format!(
|
||||
"{} is viewing a window outside of Zed",
|
||||
leader.user.github_login
|
||||
),
|
||||
theme.workspace.external_location_message.text.clone(),
|
||||
)
|
||||
.contained()
|
||||
.with_style(theme.workspace.external_location_message.container)
|
||||
.aligned()
|
||||
.bottom()
|
||||
.right()
|
||||
.boxed(),
|
||||
),
|
||||
call::ParticipantLocation::External => {
|
||||
let frame = leader
|
||||
.tracks
|
||||
.values()
|
||||
.next()
|
||||
.and_then(|track| track.frame())
|
||||
.cloned();
|
||||
return Canvas::new(move |bounds, _, cx| {
|
||||
if let Some(frame) = frame.clone() {
|
||||
cx.scene.push_surface(gpui::mac::Surface {
|
||||
bounds,
|
||||
image_buffer: frame,
|
||||
});
|
||||
}
|
||||
})
|
||||
.boxed();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue