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