Skip to content

Commit

Permalink
Add opened-folder icon for Codicons theme
Browse files Browse the repository at this point in the history
Closes #13.
  • Loading branch information
alexesprit committed May 12, 2021
1 parent f4d0c35 commit 6d20d9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/data/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
"search-result": "search"
},
"folder": "folder",
"folderExpanded": "folder-opened",
"iconDefinitions": {
"archive": {
"iconColor": "@gray",
Expand Down Expand Up @@ -456,6 +457,10 @@
"iconColor": "@gray",
"iconName": "folder"
},
"folder-opened": {
"iconColor": "@gray",
"iconName": "folder-opened"
},
"font": {
"iconColor": "@blue",
"iconName": "text-size"
Expand Down
3 changes: 2 additions & 1 deletion src/iconmaps/octicons.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"folder": "file-directory"
"folder": "file-directory",
"folder-opened": "file-directory"
}
2 changes: 1 addition & 1 deletion src/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6d20d9c

Please sign in to comment.