From bd9c2abc7da321027b5253ef10bbc01319036bf1 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+KaizIqbal@users.noreply.github.com> Date: Sat, 15 Aug 2020 19:38:03 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20all=20colors=20posiblity=20repla?= =?UTF-8?q?ce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/config.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/round/src/config.ts b/packages/round/src/config.ts index 183f9f51..d23d81de 100644 --- a/packages/round/src/config.ts +++ b/packages/round/src/config.ts @@ -28,11 +28,8 @@ for (let [schema] of Object.entries(colorSchemes)) { const schemaSvgsPath = path.resolve("./src/svg", schemaName); - if (fs.existsSync(schemaSvgsPath)) { - rimraf(schemaSvgsPath, function () {}); - } else { - fs.mkdirSync(schemaSvgsPath); - } + if (fs.existsSync(schemaSvgsPath)) rimraf(schemaSvgsPath, function () {}); + fs.mkdirSync(schemaSvgsPath); // Resolve Paths for svg const staticSvgs = staticCursors.map((svgFile: string) => { @@ -44,7 +41,11 @@ for (let [schema] of Object.entries(colorSchemes)) { .readFileSync(path.resolve(rawSvgsDir, svgFile), "utf-8") .toString(); - content = content.replace("black", base).replace("white", outline); + content = content + .replace("black", base) + .replace("white", outline) + .replace("#000000", base) + .replace("#ffffff", outline); // Writing new svg fs.writeFileSync(filePath, content, "utf-8");