Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Fix regression in git label colors due to status color changes (#27272)

Nate Butler6143da95fc10
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs
index ffc2b6f4ee3..bd558c429fe 100644
--- a/crates/editor/src/items.rs
+++ b/crates/editor/src/items.rs
@@ -1662,13 +1662,13 @@ pub fn entry_diagnostic_aware_icon_decoration_and_color(
pub fn entry_git_aware_label_color(git_status: GitSummary, ignored: bool, selected: bool) -> Color {
let tracked = git_status.index + git_status.worktree;
if ignored {
- Color::VersionControlIgnored
+ Color::Ignored
} else if git_status.conflict > 0 {
- Color::VersionControlConflict
+ Color::Conflict
} else if tracked.modified > 0 {
- Color::VersionControlModified
+ Color::Modified
} else if tracked.added > 0 || git_status.untracked > 0 {
- Color::VersionControlAdded
+ Color::Created
} else {
entry_label_color(selected)
}