mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-16 00:47:39 +03:00
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
@ -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…
Reference in New Issue
Block a user