Use ignored color from theme for items ignored by Git (#10038)

This PR updates the color of the label used for Git-aware items to use
the `ignored` color from the theme when the item is ignored by Git.

The built-in themes have had their `ignored` color updated to match
`text.disabled`, as the existing `ignored` color did not sufficiently
differentiate from non-ignored items.

Fixes #9976.

Release Notes:

- Updated items in the project panel to use the `ignored` color from the
theme when they are ignored by Git
([#9976](https://github.com/zed-industries/zed/issues/9976)).
This commit is contained in:
Marshall Bowers
2024-04-01 11:34:49 -04:00
committed by GitHub
parent 63e566e56e
commit 954c772e29
11 changed files with 42 additions and 40 deletions
+1 -1
View File
@@ -1194,7 +1194,7 @@ pub fn entry_git_aware_label_color(
selected: bool,
) -> Color {
if ignored {
Color::Disabled
Color::Ignored
} else {
match git_status {
Some(GitFileStatus::Added) => Color::Created,