mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-09 02:44:49 +00:00
Render project panel entries as muted, unless selected
This commit is contained in:
parent
446c947ad1
commit
14ed4a4316
1 changed files with 5 additions and 1 deletions
|
@ -1372,7 +1372,11 @@ impl ProjectPanel {
|
||||||
GitFileStatus::Modified => Color::Modified,
|
GitFileStatus::Modified => Color::Modified,
|
||||||
GitFileStatus::Conflict => Color::Conflict,
|
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 file_name = details.filename.clone();
|
||||||
let icon = details.icon.clone();
|
let icon = details.icon.clone();
|
||||||
|
|
Loading…
Reference in a new issue