Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
workspace: Use FolderOpen icon for active workspace project (#49180)
Riccardo Strina01ac5a8c059a
diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rsindex e1d32bd5735..14c5ce52c52 100644--- a/crates/sidebar/src/sidebar.rs+++ b/crates/sidebar/src/sidebar.rs@@ -535,6 +535,7 @@ impl PickerDelegate for WorkspacePickerDelegate {let workspace_index = thread_entry.index;let multi_workspace = self.multi_workspace.clone();let workspace_count = self.multi_workspace.read(cx).workspaces().len();+ let is_active = self.active_workspace_index == workspace_index;let is_hovered = self.hovered_thread_item == Some(workspace_index);let remove_btn = IconButton::new(@@ -568,7 +569,11 @@ impl PickerDelegate for WorkspacePickerDelegate {("workspace-item", thread_entry.index),thread_subtitle.unwrap_or("New Thread".into()),)- .icon(IconName::Folder)+ .icon(if is_active {+ IconName::FolderOpen+ } else {+ IconName::Folder+ }).running(running).generation_done(has_notification).selected(selected)