Adding material icon theme submodule and patches.

This commit is contained in:
2023-09-06 10:03:05 -06:00
parent 492a559279
commit febc5cf2b2
18 changed files with 8495 additions and 0 deletions

67
patches/fira-patch.diff Normal file
View File

@ -0,0 +1,67 @@
Index: vscode-fira-code-and-material-icon-theme/material-icon-theme/src/icons/generator/jsonGenerator.ts
===================================================================
--- vscode-fira-code-and-material-icon-theme.orig/material-icon-theme/src/icons/generator/jsonGenerator.ts
+++ vscode-fira-code-and-material-icon-theme/material-icon-theme/src/icons/generator/jsonGenerator.ts
@@ -34,6 +34,20 @@ export const generateIconConfigurationOb
options: IconJsonOptions
): IconConfiguration => {
const iconConfig = merge({}, new IconConfiguration(), { options });
+ const fonts = [
+ {
+ id: 'Fira Code',
+ src: [
+ {
+ path: './fira-code-vf.woff',
+ format: 'woff',
+ },
+ ],
+ weight: 'normal',
+ style: 'normal',
+ size: '100%',
+ },
+ ];
const languageIconDefinitions = loadLanguageIconDefinitions(
languageIcons,
iconConfig,
@@ -50,12 +64,19 @@ export const generateIconConfigurationOb
options
);
- return merge(
+ let returnedObject = merge(
{},
languageIconDefinitions,
fileIconDefinitions,
folderIconDefinitions
);
+
+ returnedObject = {
+ ...returnedObject,
+ fonts,
+ };
+
+ return returnedObject;
};
/**
@@ -139,7 +160,7 @@ export const createIconFile = (
let iconJsonPath = __dirname;
// if executed via script
if (basename(__dirname) !== 'dist') {
- iconJsonPath = join(__dirname, '..', '..', '..', 'dist');
+ iconJsonPath = join(__dirname, '..', '..', '..', '..', 'dist');
}
writeFileSync(
join(iconJsonPath, iconJsonName),
Index: vscode-fira-code-and-material-icon-theme/material-icon-theme/src/models/iconConfiguration.ts
===================================================================
--- vscode-fira-code-and-material-icon-theme.orig/material-icon-theme/src/models/iconConfiguration.ts
+++ vscode-fira-code-and-material-icon-theme/material-icon-theme/src/models/iconConfiguration.ts
@@ -1,6 +1,7 @@
import { IconJsonOptions } from './';
export class IconConfiguration {
+ fonts?: Array<any>;
file?: string;
folder?: string;
folderExpanded?: string;

1
patches/series Normal file
View File

@ -0,0 +1 @@
fira-patch.diff