mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 02:57:34 +00:00
Remove leave button from the title bar
This commit is contained in:
parent
bf5c3d963a
commit
65a9ac449f
1 changed files with 0 additions and 35 deletions
|
@ -108,7 +108,6 @@ impl View for CollabTitlebarItem {
|
||||||
right_container.add_children(self.render_collaborators(&workspace, &theme, &room, cx));
|
right_container.add_children(self.render_collaborators(&workspace, &theme, &room, cx));
|
||||||
right_container.add_child(self.render_current_user(&workspace, &theme, &user, cx));
|
right_container.add_child(self.render_current_user(&workspace, &theme, &user, cx));
|
||||||
right_container.add_child(self.render_toggle_screen_sharing_button(&theme, &room, cx));
|
right_container.add_child(self.render_toggle_screen_sharing_button(&theme, &room, cx));
|
||||||
right_container.add_child(self.render_leave_call_button(&theme, cx));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let status = workspace.read(cx).client().status();
|
let status = workspace.read(cx).client().status();
|
||||||
|
@ -427,40 +426,6 @@ impl CollabTitlebarItem {
|
||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_leave_call_button(&self, theme: &Theme, cx: &mut RenderContext<Self>) -> ElementBox {
|
|
||||||
let titlebar = &theme.workspace.titlebar;
|
|
||||||
|
|
||||||
MouseEventHandler::<LeaveCall>::new(0, cx, |state, _| {
|
|
||||||
let style = titlebar.call_control.style_for(state, false);
|
|
||||||
Svg::new("icons/leave_12.svg")
|
|
||||||
.with_color(style.color)
|
|
||||||
.constrained()
|
|
||||||
.with_width(style.icon_width)
|
|
||||||
.aligned()
|
|
||||||
.constrained()
|
|
||||||
.with_width(style.button_width)
|
|
||||||
.with_height(style.button_width)
|
|
||||||
.contained()
|
|
||||||
.with_style(style.container)
|
|
||||||
.boxed()
|
|
||||||
})
|
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
|
||||||
.on_click(MouseButton::Left, move |_, cx| {
|
|
||||||
cx.dispatch_action(LeaveCall);
|
|
||||||
})
|
|
||||||
.with_tooltip::<LeaveCall, _>(
|
|
||||||
0,
|
|
||||||
"Leave call".to_owned(),
|
|
||||||
Some(Box::new(LeaveCall)),
|
|
||||||
theme.tooltip.clone(),
|
|
||||||
cx,
|
|
||||||
)
|
|
||||||
.contained()
|
|
||||||
.with_margin_left(theme.workspace.titlebar.item_spacing)
|
|
||||||
.aligned()
|
|
||||||
.boxed()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn render_in_call_share_unshare_button(
|
fn render_in_call_share_unshare_button(
|
||||||
&self,
|
&self,
|
||||||
workspace: &ViewHandle<Workspace>,
|
workspace: &ViewHandle<Workspace>,
|
||||||
|
|
Loading…
Reference in a new issue