From 5eb4d334f29e2da40a62899827fcd16dae18d472 Mon Sep 17 00:00:00 2001 From: Vinh Tran Date: Tue, 17 Mar 2026 16:52:14 +0700 Subject: [PATCH] Add deleted color to project panel (#51553) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a file is deleted, the parent folder isn't colored which makes it hard to know unless we look at the Git Panel. This PR adds `Color::Deleted` to fix that. Screenshot 2026-03-14 at 7 56 04 PM Release Notes: - Improved project panel to color folder with deleted file --- crates/editor/src/items.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs index e0502e4d9987bef512506ef927ff5384be5f0c30..b741cfa6c80ca098d590c46de87948a76a4990aa 100644 --- a/crates/editor/src/items.rs +++ b/crates/editor/src/items.rs @@ -1972,6 +1972,8 @@ pub fn entry_git_aware_label_color(git_status: GitSummary, ignored: bool, select let tracked = git_status.index + git_status.worktree; if git_status.conflict > 0 { Color::Conflict + } else if tracked.deleted > 0 { + Color::Deleted } else if tracked.modified > 0 { Color::Modified } else if tracked.added > 0 || git_status.untracked > 0 {