file picker: Use muted color for file icons (#18325)

I think they were too much in-your-face. Muted looks better.

Before:

![image](https://github.com/user-attachments/assets/73d6171a-6276-4450-acfb-52cd44fdfe59)

After:

![image](https://github.com/user-attachments/assets/1d5f4524-b0b9-4ba6-ab66-5eaf619e58f9)

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-09-25 10:26:00 +02:00 committed by GitHub
parent eb71d2f1a8
commit 7bb510971a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1070,7 +1070,9 @@ impl PickerDelegate for FileFinderDelegate {
self.labels_for_match(path_match, cx, ix);
let file_icon = if settings.file_icons {
FileIcons::get_icon(Path::new(&file_name), cx).map(Icon::from_path)
FileIcons::get_icon(Path::new(&file_name), cx)
.map(Icon::from_path)
.map(|icon| icon.color(Color::Muted))
} else {
None
};