mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
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:
parent
c99e0e846b
commit
bcb72d83b8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user