From a0ee9fb431ff745bd54d333b3936049f9102d6e7 Mon Sep 17 00:00:00 2001 From: Kunall Banerjee Date: Tue, 26 May 2026 09:41:44 -0400 Subject: [PATCH] project_panel: Color worktree-modified files as modified, not warning (#57716) I use the One Dark theme, so to actually test if my fix worked, I had to also do: ```jsonc "experimental.theme_overrides": { "warning": "#ff0000", "modified": "#00ff00", }, ``` | Before | After | |--------|--------| | image | image | Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [ ] Performance impact has been considered and is acceptable Closes #57443. Release Notes: - Fixed Project Panel git status indicator showing modified files with a warning color instead of the modified color --- crates/project_panel/src/project_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 2cd835c26c5..02aa6cddf28 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -7365,7 +7365,7 @@ fn git_status_indicator(git_status: GitSummary) -> Option<(&'static str, Color)> return Some(("D", Color::Deleted)); } if git_status.worktree.modified > 0 { - return Some(("M", Color::Warning)); + return Some(("M", Color::Modified)); } if git_status.index.deleted > 0 { return Some(("D", Color::Deleted));