mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-28 22:14:21 -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;
|
||||
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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue