chore: build
This commit is contained in:
@@ -30,6 +30,8 @@ type ColorSettings = {
|
||||
client_color_success: string;
|
||||
client_color_danger: string;
|
||||
client_color_warning: string;
|
||||
client_title_gradient_from: string;
|
||||
client_title_gradient_to: string;
|
||||
};
|
||||
|
||||
function applyClientColors(s: ColorSettings) {
|
||||
@@ -40,7 +42,6 @@ function applyClientColors(s: ColorSettings) {
|
||||
root.style.setProperty("--primary", p);
|
||||
root.style.setProperty("--primary-soft", hexToRgba(p, 0.12));
|
||||
root.style.setProperty("--primary-glow", hexToRgba(p, 0.25));
|
||||
// --bg / --surface / --surface-2 intentionnellement non modifiés : le body garde sa couleur CSS
|
||||
}
|
||||
if (s.client_color_secondary) {
|
||||
root.style.setProperty("--cyan", s.client_color_secondary);
|
||||
@@ -49,6 +50,12 @@ function applyClientColors(s: ColorSettings) {
|
||||
if (s.client_color_danger) {
|
||||
root.style.setProperty("--red", s.client_color_danger);
|
||||
}
|
||||
if (s.client_title_gradient_from) {
|
||||
root.style.setProperty("--title-gradient-from", s.client_title_gradient_from);
|
||||
}
|
||||
if (s.client_title_gradient_to) {
|
||||
root.style.setProperty("--title-gradient-to", s.client_title_gradient_to);
|
||||
}
|
||||
}
|
||||
|
||||
function saveColorsToStorage(s: ColorSettings) {
|
||||
|
||||
Reference in New Issue
Block a user