mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 10:15:11 -04:00
🚀 Global color replacement
This commit is contained in:
parent
1a34ccb901
commit
ea545b1016
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ const generateConfigs = (colorSchemes: ColorSchema, dirPrefix: string) => {
|
||||||
.readFileSync(path.resolve(rawSvgsDir, cursor), "utf-8")
|
.readFileSync(path.resolve(rawSvgsDir, cursor), "utf-8")
|
||||||
.toString();
|
.toString();
|
||||||
|
|
||||||
content = content.replace("#00FF00", base).replace("#0000FF", outline);
|
content = content.replace(/#00FF00/g, base).replace(/#0000FF/g, outline);
|
||||||
|
|
||||||
// Save Schema
|
// Save Schema
|
||||||
const cursorPath = path.resolve(schemaSvgsPath, cursor);
|
const cursorPath = path.resolve(schemaSvgsPath, cursor);
|
||||||
|
@ -45,7 +45,7 @@ const generateConfigs = (colorSchemes: ColorSchema, dirPrefix: string) => {
|
||||||
// 1) Cursor Color
|
// 1) Cursor Color
|
||||||
// 2) Watch Color
|
// 2) Watch Color
|
||||||
|
|
||||||
content = content.replace("#00FF00", base).replace("#0000FF", outline);
|
content = content.replace(/#00FF00/g, base).replace(/#0000FF/g, outline);
|
||||||
|
|
||||||
// try => replace `customize` colors
|
// try => replace `customize` colors
|
||||||
// onError => replace `schema` main colors
|
// onError => replace `schema` main colors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue