diff --git a/assets/settings/default.json b/assets/settings/default.json index 2ddf4a137fbbc9d7df35fe520923725399bf430f..08faedbed6bd1e872f26ef6a0112f6afee0a5fd2 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -126,7 +126,7 @@ // Whether to show the collaboration panel button in the status bar. "button": true, // Where to dock channels panel. Can be 'left' or 'right'. - "dock": "right", + "dock": "left", // Default width of the channels panel. "default_width": 240 }, diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index 0e7bd5f929c8e0102ba8d78d9bcefac6c831c5e4..32ff4e63e711cc57624b06981c00cbbd1c15070e 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -86,7 +86,7 @@ impl_actions!( ] ); -const CHANNELS_PANEL_KEY: &'static str = "ChannelsPanel"; +const COLLABORATION_PANEL_KEY: &'static str = "CollaborationPanel"; pub fn init(_client: Arc, cx: &mut AppContext) { settings::register::(cx); @@ -464,7 +464,7 @@ impl CollabPanel { cx.spawn(|mut cx| async move { let serialized_panel = if let Some(panel) = cx .background() - .spawn(async move { KEY_VALUE_STORE.read_kvp(CHANNELS_PANEL_KEY) }) + .spawn(async move { KEY_VALUE_STORE.read_kvp(COLLABORATION_PANEL_KEY) }) .await .log_err() .flatten() @@ -493,7 +493,7 @@ impl CollabPanel { async move { KEY_VALUE_STORE .write_kvp( - CHANNELS_PANEL_KEY.into(), + COLLABORATION_PANEL_KEY.into(), serde_json::to_string(&SerializedChannelsPanel { width })?, ) .await?; @@ -2354,7 +2354,7 @@ impl View for CollabPanel { .into_any() }) .on_click(MouseButton::Left, |_, _, cx| cx.focus_self()) - .into_any_named("channels panel") + .into_any_named("collaboration panel") } } @@ -2404,7 +2404,7 @@ impl Panel for CollabPanel { } fn icon_tooltip(&self) -> (String, Option>) { - ("Channels Panel".to_string(), Some(Box::new(ToggleFocus))) + ("Collaboration Panel".to_string(), Some(Box::new(ToggleFocus))) } fn should_change_position_on_event(event: &Self::Event) -> bool { diff --git a/styles/src/style_tree/collab_panel.ts b/styles/src/style_tree/collab_panel.ts index 7f0fd5f4235943bd2356d5c3b717d7c284a7789c..3109f3b3a722093e2621a4b69a7f7502beaa22ad 100644 --- a/styles/src/style_tree/collab_panel.ts +++ b/styles/src/style_tree/collab_panel.ts @@ -37,7 +37,7 @@ export default function contacts_panel(): any { width: 14, }, name: { - ...text(layer, "ui_sans", { size: "sm" }), + ...text(layer, "sans", { size: "sm" }), margin: { left: NAME_MARGIN, right: 4, @@ -69,7 +69,7 @@ export default function contacts_panel(): any { const subheader_row = toggleable({ base: interactive({ base: { - ...text(layer, "ui_sans", { size: "sm" }), + ...text(layer, "sans", { size: "sm" }), padding: { left: SPACING, right: SPACING, @@ -87,7 +87,7 @@ export default function contacts_panel(): any { state: { active: { default: { - ...text(theme.lowest, "ui_sans", { size: "sm" }), + ...text(theme.lowest, "sans", { size: "sm" }), background: background(theme.lowest), }, clicked: { @@ -100,8 +100,8 @@ export default function contacts_panel(): any { const filter_input = { background: background(layer, "on"), corner_radius: 6, - text: text(layer, "ui_sans", "base"), - placeholder_text: text(layer, "ui_sans", "base", "disabled", { + text: text(layer, "sans", "base"), + placeholder_text: text(layer, "sans", "base", "disabled", { size: "xs", }), selection: theme.players[0], @@ -140,7 +140,7 @@ export default function contacts_panel(): any { }, active: { default: { - ...text(theme.lowest, "ui_sans", { size: "sm" }), + ...text(theme.lowest, "sans", { size: "sm" }), background: background(theme.lowest), }, clicked: { @@ -194,10 +194,10 @@ export default function contacts_panel(): any { add_channel_button: header_icon_button, leave_call_button: header_icon_button, row_height: ITEM_HEIGHT, - channel_indent: INDENT_SIZE, + channel_indent: INDENT_SIZE * 2, section_icon_size: 14, header_row: { - ...text(layer, "ui_sans", { size: "sm", weight: "bold" }), + ...text(layer, "sans", { size: "sm", weight: "bold" }), margin: { top: SPACING }, padding: { left: SPACING, @@ -251,7 +251,7 @@ export default function contacts_panel(): any { }, active: { default: { - ...text(theme.lowest, "ui_sans", { size: "sm" }), + ...text(theme.lowest, "sans", { size: "sm" }), background: background(theme.lowest), }, clicked: { @@ -262,7 +262,7 @@ export default function contacts_panel(): any { }), channel_row: item_row, channel_name: { - ...text(layer, "ui_sans", { size: "sm" }), + ...text(layer, "sans", { size: "sm" }), margin: { left: NAME_MARGIN, }, @@ -279,7 +279,7 @@ export default function contacts_panel(): any { list_empty_state: toggleable({ base: interactive({ base: { - ...text(layer, "ui_sans", "variant", { size: "sm" }), + ...text(layer, "sans", "variant", { size: "sm" }), padding: { top: SPACING / 2, bottom: SPACING / 2, @@ -301,7 +301,7 @@ export default function contacts_panel(): any { }, active: { default: { - ...text(theme.lowest, "ui_sans", { size: "sm" }), + ...text(theme.lowest, "sans", { size: "sm" }), background: background(theme.lowest), }, clicked: { @@ -325,12 +325,12 @@ export default function contacts_panel(): any { right: 4, }, background: background(layer, "hovered"), - ...text(layer, "ui_sans", "hovered", { size: "xs" }) + ...text(layer, "sans", "hovered", { size: "xs" }) }, contact_status_free: indicator({ layer, color: "positive" }), contact_status_busy: indicator({ layer, color: "negative" }), contact_username: { - ...text(layer, "ui_sans", { size: "sm" }), + ...text(layer, "sans", { size: "sm" }), margin: { left: NAME_MARGIN, }, diff --git a/styles/src/style_tree/context_menu.ts b/styles/src/style_tree/context_menu.ts index 84688c09716cf524b3de74733107a9dd281bcd01..2225cee5275ade020b39ec634413e0d3e520cbe5 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, "ui_sans", { size: "sm" }), + label: text(theme.middle, "sans", { size: "sm" }), keystroke: { ...text(theme.middle, "sans", "variant", { size: "sm",