mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-24 20:14:29 -04:00
🚀 Bitmaps generator added
This commit is contained in:
parent
992ad041ff
commit
b9faba709a
1 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
import { BitmapsGenerator } from "./BitmapsGenerator";
|
||||
import { ThemeColors } from "./types";
|
||||
|
||||
const createBitmaps = async (config: {
|
||||
|
@ -6,8 +7,21 @@ const createBitmaps = async (config: {
|
|||
themeName: string;
|
||||
bitmapsDir: string;
|
||||
}) => {
|
||||
// TODO:
|
||||
console.log(config);
|
||||
for (let [variant] of Object.entries(config.themeColors)) {
|
||||
const colors = config.themeColors[variant];
|
||||
const source = {
|
||||
svgDir: config.svgDir,
|
||||
colors
|
||||
};
|
||||
|
||||
const themeBitmaps = new BitmapsGenerator(
|
||||
source,
|
||||
config.themeName,
|
||||
config.bitmapsDir
|
||||
);
|
||||
|
||||
themeBitmaps.generate();
|
||||
}
|
||||
};
|
||||
|
||||
export { createBitmaps };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue