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:
parent
4852e170ff
commit
5a090bc3f3
1 changed files with 5 additions and 1 deletions
|
@ -96,7 +96,11 @@ impl Item for SharedScreen {
|
||||||
fn tab_content(&self, params: TabContentParams, _: &WindowContext<'_>) -> gpui::AnyElement {
|
fn tab_content(&self, params: TabContentParams, _: &WindowContext<'_>) -> gpui::AnyElement {
|
||||||
h_flex()
|
h_flex()
|
||||||
.gap_1()
|
.gap_1()
|
||||||
.child(Icon::new(IconName::Screen))
|
.child(Icon::new(IconName::Screen).color(if params.selected {
|
||||||
|
Color::Default
|
||||||
|
} else {
|
||||||
|
Color::Muted
|
||||||
|
}))
|
||||||
.child(
|
.child(
|
||||||
Label::new(format!("{}'s screen", self.user.github_login)).color(
|
Label::new(format!("{}'s screen", self.user.github_login)).color(
|
||||||
if params.selected {
|
if params.selected {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue