parent
7a90b1124f
commit
7b6f8c279d
1 changed files with 12 additions and 6 deletions
|
@ -731,7 +731,7 @@ impl CollabTitlebarItem {
|
||||||
ContextMenu::build(cx, |menu, _| {
|
ContextMenu::build(cx, |menu, _| {
|
||||||
menu.action("Settings", zed_actions::OpenSettings.boxed_clone())
|
menu.action("Settings", zed_actions::OpenSettings.boxed_clone())
|
||||||
.action("Extensions", extensions_ui::Extensions.boxed_clone())
|
.action("Extensions", extensions_ui::Extensions.boxed_clone())
|
||||||
.action("Themes...", theme_selector::Toggle::default().boxed_clone())
|
.action("Themes…", theme_selector::Toggle::default().boxed_clone())
|
||||||
.separator()
|
.separator()
|
||||||
.action("Sign Out", client::SignOut.boxed_clone())
|
.action("Sign Out", client::SignOut.boxed_clone())
|
||||||
})
|
})
|
||||||
|
@ -743,7 +743,11 @@ impl CollabTitlebarItem {
|
||||||
h_flex()
|
h_flex()
|
||||||
.gap_0p5()
|
.gap_0p5()
|
||||||
.child(Avatar::new(user.avatar_uri.clone()))
|
.child(Avatar::new(user.avatar_uri.clone()))
|
||||||
.child(Icon::new(IconName::ChevronDown).color(Color::Muted)),
|
.child(
|
||||||
|
Icon::new(IconName::ChevronDown)
|
||||||
|
.size(IconSize::Small)
|
||||||
|
.color(Color::Muted),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.style(ButtonStyle::Subtle)
|
.style(ButtonStyle::Subtle)
|
||||||
.tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)),
|
.tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)),
|
||||||
|
@ -755,16 +759,18 @@ impl CollabTitlebarItem {
|
||||||
ContextMenu::build(cx, |menu, _| {
|
ContextMenu::build(cx, |menu, _| {
|
||||||
menu.action("Settings", zed_actions::OpenSettings.boxed_clone())
|
menu.action("Settings", zed_actions::OpenSettings.boxed_clone())
|
||||||
.action("Extensions", extensions_ui::Extensions.boxed_clone())
|
.action("Extensions", extensions_ui::Extensions.boxed_clone())
|
||||||
.action("Themes...", theme_selector::Toggle::default().boxed_clone())
|
.action("Themes…", theme_selector::Toggle::default().boxed_clone())
|
||||||
})
|
})
|
||||||
.into()
|
.into()
|
||||||
})
|
})
|
||||||
.trigger(
|
.trigger(
|
||||||
ButtonLike::new("user-menu")
|
ButtonLike::new("user-menu")
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex().gap_0p5().child(
|
||||||
.gap_0p5()
|
Icon::new(IconName::ChevronDown)
|
||||||
.child(Icon::new(IconName::ChevronDown).color(Color::Muted)),
|
.size(IconSize::Small)
|
||||||
|
.color(Color::Muted),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.style(ButtonStyle::Subtle)
|
.style(ButtonStyle::Subtle)
|
||||||
.tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)),
|
.tooltip(move |cx| Tooltip::text("Toggle User Menu", cx)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue