Render project panel entries as muted, unless selected

This commit is contained in:
Marshall Bowers 2023-12-22 21:36:20 -05:00
parent 446c947ad1
commit 14ed4a4316

View file

@ -1372,7 +1372,11 @@ impl ProjectPanel {
GitFileStatus::Modified => Color::Modified,
GitFileStatus::Conflict => Color::Conflict,
})
.unwrap_or(Color::Default);
.unwrap_or(if is_selected {
Color::Default
} else {
Color::Muted
});
let file_name = details.filename.clone();
let icon = details.icon.clone();