From 6d20d9ce62c690ecc3a4d6c1af69d8abc86982ef Mon Sep 17 00:00:00 2001 From: alexesprit Date: Wed, 12 May 2021 23:41:15 +0300 Subject: [PATCH] Add opened-folder icon for Codicons theme Closes #13. --- src/data/items.json | 5 +++++ src/iconmaps/octicons.json | 3 ++- src/themes.js | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/data/items.json b/src/data/items.json index 6024fc5..3c0f81a 100644 --- a/src/data/items.json +++ b/src/data/items.json @@ -379,6 +379,7 @@ "search-result": "search" }, "folder": "folder", + "folderExpanded": "folder-opened", "iconDefinitions": { "archive": { "iconColor": "@gray", @@ -456,6 +457,10 @@ "iconColor": "@gray", "iconName": "folder" }, + "folder-opened": { + "iconColor": "@gray", + "iconName": "folder-opened" + }, "font": { "iconColor": "@blue", "iconName": "text-size" diff --git a/src/iconmaps/octicons.json b/src/iconmaps/octicons.json index 0f207a8..a61856c 100644 --- a/src/iconmaps/octicons.json +++ b/src/iconmaps/octicons.json @@ -1,3 +1,4 @@ { - "folder": "file-directory" + "folder": "file-directory", + "folder-opened": "file-directory" } diff --git a/src/themes.js b/src/themes.js index 57512fb..75ce200 100644 --- a/src/themes.js +++ b/src/themes.js @@ -100,7 +100,7 @@ function getIconTheme(themeId) { iconTheme.iconDefinitions[lightIconName] = { fontColor: lightColor }; } - for (const propName of ['file', 'folder']) { + for (const propName of ['file', 'folder', 'folderExpanded']) { const iconName = items[propName]; const prefixedIconName = prefix(iconName);