mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-24 12:07:02 -04:00
♻ spinner customize
This commit is contained in:
parent
e242869da1
commit
0e7f39e0fb
1 changed files with 7 additions and 4 deletions
|
@ -1,23 +1,26 @@
|
|||
import chalk from "chalk";
|
||||
import { renderCursors, spinner } from "shared";
|
||||
|
||||
import { generateConfigs } from "./helpers/schema";
|
||||
import { colorSchemes } from "./color";
|
||||
import { colorSchemes, bitmapsPath } from "./color";
|
||||
|
||||
(async () => {
|
||||
const prefix = "Bibata-Round";
|
||||
|
||||
const configs = generateConfigs(colorSchemes, prefix);
|
||||
|
||||
try {
|
||||
for (let [schema] of Object.entries(configs)) {
|
||||
spinner.text = `Generating ${prefix}-${schema} bitmaps`;
|
||||
spinner.text = `Generating ${chalk.magentaBright(
|
||||
`${prefix}-${schema}`
|
||||
)} bitmaps ...`;
|
||||
spinner.start();
|
||||
|
||||
await renderCursors(configs[schema]);
|
||||
|
||||
spinner.succeed();
|
||||
}
|
||||
|
||||
console.log("\n🎉 Render Done.");
|
||||
console.log(`🎉 Bitmaps stored at ${bitmapsPath}`);
|
||||
} catch (error) {
|
||||
spinner.fail();
|
||||
console.error(error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue