Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update channel context menu
Nate Butler28649fb71d4a
diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rsindex 498b278abd1..ce4ffc8f6b1 100644--- a/crates/collab_ui/src/collab_panel.rs+++ b/crates/collab_ui/src/collab_panel.rs@@ -1834,10 +1834,13 @@ impl CollabPanel {},vec![ContextMenuItem::action("New Subchannel", NewChannel { channel_id }),- ContextMenuItem::action("Remove Channel", RemoveChannel { channel_id }),- ContextMenuItem::action("Manage members", ManageMembers { channel_id }),- ContextMenuItem::action("Invite members", InviteMembers { channel_id }),- ContextMenuItem::action("Rename Channel", RenameChannel { channel_id }),+ ContextMenuItem::Separator,+ ContextMenuItem::action("Invite to Channel", InviteMembers { channel_id }),+ ContextMenuItem::Separator,+ ContextMenuItem::action("Rename", RenameChannel { channel_id }),+ ContextMenuItem::action("Manage", ManageMembers { channel_id }),+ ContextMenuItem::Separator,+ ContextMenuItem::action("Delete", RemoveChannel { channel_id }),],cx,);diff --git a/styles/src/style_tree/context_menu.ts b/styles/src/style_tree/context_menu.tsindex d4266a71fe6..84688c09716 100644--- a/styles/src/style_tree/context_menu.ts+++ b/styles/src/style_tree/context_menu.ts@@ -19,7 +19,7 @@ export default function context_menu(): any {icon_width: 14,padding: { left: 6, right: 6, top: 2, bottom: 2 },corner_radius: 6,- label: text(theme.middle, "sans", { size: "sm" }),+ label: text(theme.middle, "ui_sans", { size: "sm" }),keystroke: {...text(theme.middle, "sans", "variant", {size: "sm",@@ -31,16 +31,6 @@ export default function context_menu(): any {state: {hovered: {background: background(theme.middle, "hovered"),- label: text(theme.middle, "sans", "hovered", {- size: "sm",- }),- keystroke: {- ...text(theme.middle, "sans", "hovered", {- size: "sm",- weight: "bold",- }),- padding: { left: 3, right: 3 },- },},clicked: {background: background(theme.middle, "pressed"),