mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
Update channel context menu
This commit is contained in:
parent
1ffde7bddc
commit
28649fb71d
2 changed files with 8 additions and 15 deletions
|
@ -1834,10 +1834,13 @@ impl CollabPanel {
|
||||||
},
|
},
|
||||||
vec![
|
vec![
|
||||||
ContextMenuItem::action("New Subchannel", NewChannel { channel_id }),
|
ContextMenuItem::action("New Subchannel", NewChannel { channel_id }),
|
||||||
ContextMenuItem::action("Remove Channel", RemoveChannel { channel_id }),
|
ContextMenuItem::Separator,
|
||||||
ContextMenuItem::action("Manage members", ManageMembers { channel_id }),
|
ContextMenuItem::action("Invite to Channel", InviteMembers { channel_id }),
|
||||||
ContextMenuItem::action("Invite members", InviteMembers { channel_id }),
|
ContextMenuItem::Separator,
|
||||||
ContextMenuItem::action("Rename Channel", RenameChannel { channel_id }),
|
ContextMenuItem::action("Rename", RenameChannel { channel_id }),
|
||||||
|
ContextMenuItem::action("Manage", ManageMembers { channel_id }),
|
||||||
|
ContextMenuItem::Separator,
|
||||||
|
ContextMenuItem::action("Delete", RemoveChannel { channel_id }),
|
||||||
],
|
],
|
||||||
cx,
|
cx,
|
||||||
);
|
);
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default function context_menu(): any {
|
||||||
icon_width: 14,
|
icon_width: 14,
|
||||||
padding: { left: 6, right: 6, top: 2, bottom: 2 },
|
padding: { left: 6, right: 6, top: 2, bottom: 2 },
|
||||||
corner_radius: 6,
|
corner_radius: 6,
|
||||||
label: text(theme.middle, "sans", { size: "sm" }),
|
label: text(theme.middle, "ui_sans", { size: "sm" }),
|
||||||
keystroke: {
|
keystroke: {
|
||||||
...text(theme.middle, "sans", "variant", {
|
...text(theme.middle, "sans", "variant", {
|
||||||
size: "sm",
|
size: "sm",
|
||||||
|
@ -31,16 +31,6 @@ export default function context_menu(): any {
|
||||||
state: {
|
state: {
|
||||||
hovered: {
|
hovered: {
|
||||||
background: background(theme.middle, "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: {
|
clicked: {
|
||||||
background: background(theme.middle, "pressed"),
|
background: background(theme.middle, "pressed"),
|
||||||
|
|
Loading…
Reference in a new issue