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 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
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,10 +4,6 @@ interface ColorSchema {
|
|||
outline: string;
|
||||
watch?: {
|
||||
background: string;
|
||||
color1: string;
|
||||
color2: string;
|
||||
color3: string;
|
||||
color4: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue