Skip to content

Commit

Permalink
feat: update icons
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Apr 6, 2024
1 parent a8095d5 commit 75bdd37
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 22 deletions.
10 changes: 5 additions & 5 deletions icons/javascript-map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions icons/javascript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions icons/jsconfig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions icons/typescript-def.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions icons/typescript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "material-icon-theme",
"displayName": "Material Icon Theme",
"description": "Material Design Icons for Visual Studio Code",
"version": "4.34.0",
"version": "4.34.0-rc-2",
"scripts": {
"build": "npm run compile:dev && npm run generateJson",
"check": "ts-node ./src/scripts/icons/checks",
Expand Down
2 changes: 1 addition & 1 deletion src/icons/generator/fileGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const generateFileIcons = (color: string | undefined) => {
const fileIcon =
'M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m5 2H6v16h12v-9h-7V4z';

writeSVGFiles('file', getSVG(getPath(fileIcon, color)));
writeSVGFiles('file', getSVG(getPath(fileIcon, color), 24));
};

const getCustomIcons = (fileAssociations: IconAssociations | undefined) => {
Expand Down
2 changes: 1 addition & 1 deletion src/icons/generator/folderGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export const generateFolderIcons = (color: string | undefined) => {

export const getPath = (d: string, color: string) =>
`<path d="${d}" fill="${color}" />`;
export const getSVG = (path: string, viewBoxSize: number = 32) =>
export const getSVG = (path: string, viewBoxSize = 32) =>
`<svg viewBox="0 0 ${viewBoxSize} ${viewBoxSize}" xmlns="http://www.w3.org/2000/svg">${path}</svg>`;

export const writeSVGFiles = (iconName: string, svg: string) => {
Expand Down

0 comments on commit 75bdd37

Please sign in to comment.