Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Dim the shared screen tab's icon when it is inactive (#14678)

Marshall Bowers5a090bc3f30b
diff --git a/crates/workspace/src/shared_screen.rs b/crates/workspace/src/shared_screen.rs
index 63dc4ad84cb..305d3e0aa02 100644
--- a/crates/workspace/src/shared_screen.rs
+++ b/crates/workspace/src/shared_screen.rs
@@ -96,7 +96,11 @@ impl Item for SharedScreen {
fn tab_content(&self, params: TabContentParams, _: &WindowContext<'_>) -> gpui::AnyElement {
h_flex()
.gap_1()
- .child(Icon::new(IconName::Screen))
+ .child(Icon::new(IconName::Screen).color(if params.selected {
+ Color::Default
+ } else {
+ Color::Muted
+ }))
.child(
Label::new(format!("{}'s screen", self.user.github_login)).color(
if params.selected {