🌈 Cursor theme name followed by variant

This commit is contained in:
ful1e5 2020-09-29 10:43:08 +05:30
parent f97dcc4606
commit 9b65b126a3

View file

@ -6,9 +6,10 @@ const createBitmaps = async (config: {
svgDir: string;
themeName: string;
bitmapsDir: string;
}) => {
}): Promise<boolean> => {
for (let [variant] of Object.entries(config.themeColors)) {
const colors = config.themeColors[variant];
const themeName = `${config.themeName}-${variant}`;
const source = {
svgDir: config.svgDir,
colors
@ -16,12 +17,13 @@ const createBitmaps = async (config: {
const themeBitmaps = new BitmapsGenerator(
source,
config.themeName,
themeName,
config.bitmapsDir
);
themeBitmaps.generate();
await themeBitmaps.generate();
}
return true;
};
export { createBitmaps };