From d81a4ec7ecffb2c1f3b710bc08ce5f7ffa46c90d Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 5 Feb 2025 18:35:27 -0500 Subject: [PATCH] file_icons: Use a separate icon key for HTML files (#24323) 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. --- assets/icons/file_icons/file_types.json | 4 ++-- crates/theme/src/icon_theme.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/icons/file_icons/file_types.json b/assets/icons/file_icons/file_types.json index 222b056bfc..9580c8fd4e 100644 --- a/assets/icons/file_icons/file_types.json +++ b/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", diff --git a/crates/theme/src/icon_theme.rs b/crates/theme/src/icon_theme.rs index 170b51a1f9..1a99e42ed8 100644 --- a/crates/theme/src/icon_theme.rs +++ b/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"),