mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-22 11:15:17 -04:00
🚀 Watch color cleanup
This commit is contained in:
parent
efe1992d7c
commit
9d304dd918
3 changed files with 4 additions and 31 deletions
|
@ -11,34 +11,22 @@ const schemesPath = path.resolve("src", "svg");
|
||||||
|
|
||||||
const black = "#000000";
|
const black = "#000000";
|
||||||
const white = "#FFFFFF";
|
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🌈
|
// --------------------------------------- Schemes🌈
|
||||||
|
|
||||||
const colorSchemes: ColorSchema = {
|
const colorSchemes: ColorSchema = {
|
||||||
Ice: {
|
Ice: {
|
||||||
base: black,
|
base: black,
|
||||||
outline: white,
|
outline: white,
|
||||||
watch: {
|
watch: {
|
||||||
background: white,
|
background: white
|
||||||
...watchColors
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Classic: {
|
Classic: {
|
||||||
base: black,
|
base: black,
|
||||||
outline: white,
|
outline: white,
|
||||||
watch: {
|
watch: {
|
||||||
background: black,
|
background: black
|
||||||
...watchColors
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -55,19 +55,8 @@ const generateConfigs = (
|
||||||
// onError => replace `schema` main colors
|
// onError => replace `schema` main colors
|
||||||
try {
|
try {
|
||||||
if (!watch) throw new Error("");
|
if (!watch) throw new Error("");
|
||||||
const {
|
const { background: b } = watch;
|
||||||
background: b,
|
|
||||||
color1: c1,
|
|
||||||
color2: c2,
|
|
||||||
color3: c3,
|
|
||||||
color4: c4
|
|
||||||
} = watch;
|
|
||||||
content = content.replace("#TODO", b); // Watch Background
|
content = content.replace("#TODO", b); // Watch Background
|
||||||
content = content
|
|
||||||
.replace("#TODO", c1)
|
|
||||||
.replace("#TODO", c2)
|
|
||||||
.replace("#TODO", c3)
|
|
||||||
.replace("#TODO", c4);
|
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
// Save Schema
|
// Save Schema
|
||||||
|
|
|
@ -4,10 +4,6 @@ interface ColorSchema {
|
||||||
outline: string;
|
outline: string;
|
||||||
watch?: {
|
watch?: {
|
||||||
background: string;
|
background: string;
|
||||||
color1: string;
|
|
||||||
color2: string;
|
|
||||||
color3: string;
|
|
||||||
color4: string;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue