🚀 Watch color cleanup

This commit is contained in:
ful1e5 2020-08-17 16:33:29 +05:30
parent efe1992d7c
commit 9d304dd918
3 changed files with 4 additions and 31 deletions

View file

@ -11,34 +11,22 @@ const schemesPath = path.resolve("src", "svg");
const black = "#000000";
const white = "#FFFFFF";
const red = "#F2704D";
const yellow = "#FDC43F";
const green = "#96C865";
const blue = "#4FADDF";
const watchColors = {
color1: red, // top-right shape color
color2: yellow, // bottom-right shape color
color3: green, // bottom-left shape color
color4: blue // top-left shape color
};
// --------------------------------------- Schemes🌈
const colorSchemes: ColorSchema = {
Ice: {
base: black,
outline: white,
watch: {
background: white,
...watchColors
background: white
}
},
Classic: {
base: black,
outline: white,
watch: {
background: black,
...watchColors
background: black
}
}
};

View file

@ -55,19 +55,8 @@ const generateConfigs = (
// onError => replace `schema` main colors
try {
if (!watch) throw new Error("");
const {
background: b,
color1: c1,
color2: c2,
color3: c3,
color4: c4
} = watch;
const { background: b } = watch;
content = content.replace("#TODO", b); // Watch Background
content = content
.replace("#TODO", c1)
.replace("#TODO", c2)
.replace("#TODO", c3)
.replace("#TODO", c4);
} catch (error) {}
// Save Schema

View file

@ -4,10 +4,6 @@ interface ColorSchema {
outline: string;
watch?: {
background: string;
color1: string;
color2: string;
color3: string;
color4: string;
};
};
}