Fix an inconsistency in dark mode (#20671)

* add app-theme-color var

* Fix Prettier format

* Fix regression on default dark theme

* prevent duplicate calculation
This commit is contained in:
Nicooow 2024-04-30 14:03:19 +02:00 committed by GitHub
parent c99e0e846b
commit bcb72d83b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,11 +61,8 @@ export const applyThemesOnElement = (
const accentColor = themeSettings?.accentColor;
if (darkMode && primaryColor) {
themeRules["app-header-background-color"] = hexBlend(
primaryColor,
"#121212",
8
);
themeRules["app-theme-color"] = hexBlend(primaryColor, "#121212", 8);
themeRules["app-header-background-color"] = themeRules["app-theme-color"];
}
if (primaryColor) {