Skip to content

Commit 5712c87

Browse files
authored
sidebar: Fix project header active state (#51203)
Release Notes: - N/A
1 parent b21f4a3 commit 5712c87

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

crates/sidebar/src/sidebar.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -796,13 +796,15 @@ impl Sidebar {
796796
};
797797

798798
let color = cx.theme().colors();
799-
let gradient_overlay = GradientFade::new(
800-
color.panel_background,
801-
color.element_hover,
802-
color.element_active,
803-
)
804-
.width(px(48.0))
805-
.group_name(group_name.clone());
799+
let base_bg = if is_active_workspace {
800+
color.ghost_element_selected
801+
} else {
802+
color.panel_background
803+
};
804+
let gradient_overlay =
805+
GradientFade::new(base_bg, color.element_hover, color.element_active)
806+
.width(px(48.0))
807+
.group_name(group_name.clone());
806808

807809
ListItem::new(id)
808810
.group_name(group_name)

0 commit comments

Comments
 (0)