From 7bb510971a0cc59b89ed5ed51cbacbf29f365c06 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Wed, 25 Sep 2024 10:26:00 +0200 Subject: [PATCH] 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 --- crates/file_finder/src/file_finder.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/file_finder/src/file_finder.rs b/crates/file_finder/src/file_finder.rs index 726a8bcb5e..1a65bd352d 100644 --- a/crates/file_finder/src/file_finder.rs +++ b/crates/file_finder/src/file_finder.rs @@ -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 };