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.
This commit is contained in:
Marshall Bowers 2024-07-17 15:25:56 -04:00 committed by GitHub
parent 4852e170ff
commit 5a090bc3f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {