mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-29 06:15:24 -04:00
🌈 Cursor theme name followed by variant
This commit is contained in:
parent
f97dcc4606
commit
9b65b126a3
1 changed files with 5 additions and 3 deletions
|
@ -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 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue