Add deleted color to project panel (#51553)

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.

<img width="366" height="428" alt="Screenshot 2026-03-14 at 7 56 04 PM"
src="https://github.com/user-attachments/assets/6ed3a3c7-e7e7-4b48-b89c-705a7c1ff634"
/>

Release Notes:

- Improved project panel to color folder with deleted file
This commit is contained in:
Vinh Tran authored and GitHub committed 2026-03-17 09:52:14 +00:00
1 parent 7046308476
commit 48d8e31e68
1 file changed
+2
+2
View File
@@ -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 {