From 5a090bc3f30bbd9f9d459a1c69efb68afb06c6df Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 17 Jul 2024 15:25:56 -0400 Subject: [PATCH] Dim the shared screen tab's icon when it is inactive (#14678) This PR makes it so the icon of the shared screen tab is properly dimmed when the tab is inactive. Release Notes: - Fixed an issue where the shared screen tab's icon would not render as dimmed when the tab was inactive. --- crates/workspace/src/shared_screen.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/workspace/src/shared_screen.rs b/crates/workspace/src/shared_screen.rs index 63dc4ad84c..305d3e0aa0 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 {