Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Rename and toggle screenshare
Mikayla Maki37cb202c9337
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex 52f0bc7d618..0a91a488edd 100644--- a/crates/collab_ui/src/collab_titlebar_item.rs+++ b/crates/collab_ui/src/collab_titlebar_item.rs@@ -417,7 +417,7 @@ impl CollabTitlebarItem {let titlebar = &theme.workspace.titlebar;MouseEventHandler::<ToggleScreenSharing, Self>::new(0, cx, |state, _| {- let style = titlebar.call_control.style_for(state);+ let style = titlebar.screen_share_button.style_for(state);Svg::new(icon).with_color(style.color).constrained()diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rsindex 3fda62ced98..f2e9c4aa3ec 100644--- a/crates/theme/src/theme.rs+++ b/crates/theme/src/theme.rs@@ -133,7 +133,7 @@ pub struct Titlebar {pub sign_in_prompt: Toggleable<Interactive<ContainedText>>,pub outdated_warning: ContainedText,pub share_button: Toggleable<Interactive<ContainedText>>,- pub call_control: Interactive<IconButton>,+ pub screen_share_button: Toggleable<Interactive<IconButton>>,pub toggle_contacts_button: Toggleable<Interactive<IconButton>>,pub toggle_microphone_button: Toggleable<Interactive<IconButton>>,pub toggle_speakers_button: Toggleable<Interactive<IconButton>>,diff --git a/styles/package.json b/styles/package.jsonindex 8820259e860..b14fb5f527e 100644--- a/styles/package.json+++ b/styles/package.json@@ -7,7 +7,7 @@"build": "ts-node ./src/buildThemes.ts","build-licenses": "ts-node ./src/buildLicenses.ts","build-tokens": "ts-node ./src/buildTokens.ts",- "build-types": "cd ../crates/theme && cargo test && cd ../../styles && ts-node ./src/buildTypes.ts",+ "build-types": "ts-node ./src/buildTypes.ts","test": "vitest"},"author": "",diff --git a/styles/src/styleTree/workspace.ts b/styles/src/styleTree/workspace.tsindex da1ad1fe187..ec3776dcb02 100644--- a/styles/src/styleTree/workspace.ts+++ b/styles/src/styleTree/workspace.ts@@ -300,7 +300,7 @@ export default function workspace(colorScheme: ColorScheme) {cornerRadius: 6,},- call_control: icon_button(colorScheme, {+ screen_share_button: icon_button(colorScheme, {margin: { left: itemSpacing / 2 },}),