mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +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;
|
const accentColor = themeSettings?.accentColor;
|
||||||
|
|
||||||
if (darkMode && primaryColor) {
|
if (darkMode && primaryColor) {
|
||||||
themeRules["app-header-background-color"] = hexBlend(
|
themeRules["app-theme-color"] = hexBlend(primaryColor, "#121212", 8);
|
||||||
primaryColor,
|
themeRules["app-header-background-color"] = themeRules["app-theme-color"];
|
||||||
"#121212",
|
|
||||||
8
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (primaryColor) {
|
if (primaryColor) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user