file_icons: Add icon key for Crystal and ECR files (#24903)

Release Notes:

- Icon themes: Added the ability to change the file icon for Crystal
(`.cr`, `.ecr`) files.

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
Margret Riegert 2025-02-14 15:27:43 -05:00 committed by GitHub
parent e37acdeeb8
commit 3040ef416a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,7 @@
"conf": "settings",
"cpp": "cpp",
"cs": "csharp",
"cr": "crystal",
"css": "css",
"csv": "storage",
"cxx": "cpp",
@ -43,6 +44,7 @@
"dll": "storage",
"doc": "document",
"docx": "document",
"ecr": "crystal",
"eex": "elixir",
"elm": "elm",
"erl": "erlang",

View file

@ -67,6 +67,7 @@ const FILE_ICONS: &[(&str, &str)] = &[
("code", "icons/file_icons/code.svg"),
("coffeescript", "icons/file_icons/coffeescript.svg"),
("cpp", "icons/file_icons/cpp.svg"),
("crystal", "icons/file_icons/file.svg"),
("csharp", "icons/file_icons/file.svg"),
("css", "icons/file_icons/css.svg"),
("cue", "icons/file_icons/file.svg"),