file_icons: Use a separate icon key for HTML files (#24323)

Marshall Bowers created

This PR updates the file icon mappings such that HTML (`.html` and
`.htm`) files map to the `html` key.

This allows for the HTML file icons to be replaced in icon themes.

Release Notes:

- Icon themes: Added the ability to change the file icon for HTML
(`.html`, `.htm`) files.

Change summary

assets/icons/file_icons/file_types.json | 4 ++--
crates/theme/src/icon_theme.rs          | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)

Detailed changes

assets/icons/file_icons/file_types.json 🔗

@@ -86,8 +86,8 @@
     "hpp": "cpp",
     "hrl": "erlang",
     "hs": "haskell",
-    "htm": "template",
-    "html": "template",
+    "htm": "html",
+    "html": "html",
     "hxx": "cpp",
     "ib": "storage",
     "ico": "image",

crates/theme/src/icon_theme.rs 🔗

@@ -84,6 +84,7 @@ const FILE_ICONS: &[(&str, &str)] = &[
     ("haskell", "icons/file_icons/haskell.svg"),
     ("hcl", "icons/file_icons/hcl.svg"),
     ("heroku", "icons/file_icons/heroku.svg"),
+    ("html", "icons/file_icons/html.svg"),
     ("image", "icons/file_icons/image.svg"),
     ("java", "icons/file_icons/java.svg"),
     ("javascript", "icons/file_icons/javascript.svg"),