mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-24 12:07:02 -04:00
⚡ Bibata-Original bitmaps
This commit is contained in:
parent
e86dec5163
commit
89eba25a9d
4 changed files with 79 additions and 8 deletions
|
@ -8,7 +8,7 @@ const svgDir = path.resolve(root, "svg", "modern");
|
|||
|
||||
const main = async () => {
|
||||
for (const { themeName, color } of config) {
|
||||
console.log("Preparing bitmaps of", themeName, "...");
|
||||
console.log("=>", themeName);
|
||||
|
||||
const bitmapsDir = path.resolve(root, "bitmaps", themeName);
|
||||
const svg = new SVGHandler.SvgDirectoryParser(svgDir);
|
||||
|
@ -17,11 +17,15 @@ const main = async () => {
|
|||
const browser = await png.getBrowser();
|
||||
|
||||
for (let { key, content } of svg.getStatic()) {
|
||||
console.log(" -> Saving", key, "...");
|
||||
|
||||
content = SVGHandler.colorSvg(content, color);
|
||||
await png.generateStatic(browser, content, key);
|
||||
}
|
||||
|
||||
for (let { key, content } of svg.getAnimated()) {
|
||||
console.log(" -> Saving", key, "...");
|
||||
|
||||
content = SVGHandler.colorSvg(content, color);
|
||||
await png.generateAnimated(browser, content, key);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue