@pierre/vscode-icons 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pierre/vscode-icons",
3
3
  "displayName": "Pierre VS Code Icons",
4
4
  "description": "File icon theme for VS Code backed by source SVGs.",
5
- "version": "0.0.5",
5
+ "version": "0.0.6",
6
6
  "publisher": "pierrecomputer",
7
7
  "license": "MIT",
8
8
  "type": "module",
@@ -87,8 +87,18 @@ function buildTheme(icons, { colored = false } = {}) {
87
87
  const lightFileExtensions = {};
88
88
  const fileNames = {};
89
89
  const lightFileNames = {};
90
-
91
- for (const { name, color: iconColor, fileExtensions: exts, fileNames: names } of icons) {
90
+ const folderNames = {};
91
+ const lightFolderNames = {};
92
+ const folderNamesExpanded = {};
93
+ const lightFolderNamesExpanded = {};
94
+
95
+ for (const {
96
+ name,
97
+ color: iconColor,
98
+ fileExtensions: exts,
99
+ fileNames: names,
100
+ folderNames: folders,
101
+ } of icons) {
92
102
  const hasColor = colored && iconColor;
93
103
  const darkPath = hasColor ? `./${name}-color.svg` : `./${name}.svg`;
94
104
  const lightPath = hasColor ? `./${name}-color-light.svg` : `./${name}-light.svg`;
@@ -107,6 +117,14 @@ function buildTheme(icons, { colored = false } = {}) {
107
117
  lightFileNames[fn] = `${name}_light`;
108
118
  }
109
119
  }
120
+ if (folders) {
121
+ for (const fn of folders) {
122
+ folderNames[fn] = name;
123
+ lightFolderNames[fn] = `${name}_light`;
124
+ folderNamesExpanded[fn] = name;
125
+ lightFolderNamesExpanded[fn] = `${name}_light`;
126
+ }
127
+ }
110
128
  }
111
129
 
112
130
  const hasSymlink = icons.some((i) => i.name === "file-symlink-duo");
@@ -132,6 +150,13 @@ function buildTheme(icons, { colored = false } = {}) {
132
150
  theme.light.fileNames = lightFileNames;
133
151
  }
134
152
 
153
+ if (Object.keys(folderNames).length > 0) {
154
+ theme.folderNames = folderNames;
155
+ theme.folderNamesExpanded = folderNamesExpanded;
156
+ theme.light.folderNames = lightFolderNames;
157
+ theme.light.folderNamesExpanded = lightFolderNamesExpanded;
158
+ }
159
+
135
160
  return theme;
136
161
  }
137
162
 
@@ -63,6 +63,10 @@ export default [
63
63
  name: "file-table-duo",
64
64
  fileExtensions: ["csv", "tsv", "xls", "xlsx", "ods"],
65
65
  },
66
+ {
67
+ name: "file-zip-duo",
68
+ fileExtensions: ["zip", "tar", "gz", "tgz", "bz2", "xz", "7z", "rar", "jar", "war"],
69
+ },
66
70
  {
67
71
  name: "font",
68
72
  fileExtensions: ["ttf", "otf", "woff", "woff2", "eot"],
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
+ <path fill="currentColor" d="M9.501 1c.132 0 .26.053.353.146l4 4a.5.5 0 0 1 .147.354v7a2.5 2.5 0 0 1-2.5 2.5h-7c-1.38 0-2.5-1.12-2.501-2.5v-9C2 2.12 3.12 1 4.501 1zm-5 1a1.5 1.5 0 0 0-1.5 1.5v9a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V6h-2a2 2 0 0 1-2-2V2zM11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5z"/>
3
+ </svg>
@@ -1,4 +1,4 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
- <path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".54"/>
2
+ <path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
3
3
  <path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
4
4
  </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
+ <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
3
+ <path fill="currentColor" d="M7 9s.5 1.017.5 1.9c0 .884-.672 1.6-1.5 1.6s-1.5-.716-1.5-1.6c0-.883.5-1.9.5-1.9h1V8h1zM6 8H5V7h1zm1-1H6V6h1zM6 6H5V5h1zm3.5-5a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1zM7 5H6V4h1zM6 4H5V3h1zm1-1H6V2h1zM6 2H5V1h1z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
+ <path fill="currentColor" d="M7 9s.5 1.017.5 1.9c0 .884-.672 1.6-1.5 1.6s-1.5-.716-1.5-1.6c0-.883.5-1.9.5-1.9h1V8h1zM6 8H5V7h1zm1-1H6V6h1zM6 6H5V5h1zm1-1H6V4h1zM6 4H5V3h1z"/>
3
+ <path fill="currentColor" fill-rule="evenodd" d="M9.501 1c.132 0 .26.053.353.146l4 4a.5.5 0 0 1 .147.354v7a2.5 2.5 0 0 1-2.5 2.5h-7c-1.38 0-2.5-1.12-2.501-2.5v-9C2 2.12 3.12 1 4.501 1zm-5 1a1.5 1.5 0 0 0-1.5 1.5v9a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V6h-2a2 2 0 0 1-2-2V2H7v1H6V2z" clip-rule="evenodd"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
+ <path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
3
+ <path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
+ <path fill="currentColor" fill-rule="evenodd" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12a2 2 0 0 1 2 2V12a2 2 0 0 1-2 2H2a2 2 0 0 1-.403-.041A2 2 0 0 1 0 12v-1.25h1v-1H0V4a2 2 0 0 1 2-2zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zM2 3a1 1 0 0 0-1 1v2h12v-.5a1 1 0 0 0-1-1H7.915a2 2 0 0 1-1.028-.285L5.099 3.143A1 1 0 0 0 4.585 3z" clip-rule="evenodd"/>
3
+ </svg>