Use Git status color for icons in project panel (#6992)

This PR updates the icons in the file tree in the project panel to also
use the Git status color:

<img width="267" alt="Screenshot 2024-01-29 at 10 21 41 AM"
src="https://github.com/zed-industries/zed/assets/1486634/2f4f6e9e-8050-4f5b-851a-e407aec823a0">

Release Notes:

- Updated icons in project panel to reflect Git status
([#6991](https://github.com/zed-industries/zed/issues/6991)).
This commit is contained in:
Marshall Bowers 2024-01-29 10:26:30 -05:00 committed by GitHub
parent d2968866b2
commit d1a6003033
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1380,7 +1380,7 @@ impl ProjectPanel {
.indent_step_size(px(settings.indent_size))
.selected(is_selected)
.child(if let Some(icon) = &icon {
div().child(Icon::from_path(icon.to_string()).color(Color::Muted))
div().child(Icon::from_path(icon.to_string()).color(filename_text_color))
} else {
div().size(IconSize::default().rems()).invisible()
})