mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix app-theme-color not following header color (#20758)
* Fix app-theme-color not following header color * Revert incorrect fix for #20671 that only applies when a primary color is set by the user
This commit is contained in:
parent
0b6994d402
commit
19f94ff8cc
@ -61,8 +61,11 @@ export const applyThemesOnElement = (
|
||||
const accentColor = themeSettings?.accentColor;
|
||||
|
||||
if (darkMode && primaryColor) {
|
||||
themeRules["app-theme-color"] = hexBlend(primaryColor, "#121212", 8);
|
||||
themeRules["app-header-background-color"] = themeRules["app-theme-color"];
|
||||
themeRules["app-header-background-color"] = hexBlend(
|
||||
primaryColor,
|
||||
"#121212",
|
||||
8
|
||||
);
|
||||
}
|
||||
|
||||
if (primaryColor) {
|
||||
|
@ -102,7 +102,7 @@ export const derivedStyles = {
|
||||
"mdc-theme-error": "var(--error-color)",
|
||||
"app-header-text-color": "var(--text-primary-color)",
|
||||
"app-header-background-color": "var(--primary-color)",
|
||||
"app-theme-color": "var(--primary-color)",
|
||||
"app-theme-color": "var(--app-header-background-color)",
|
||||
"mdc-checkbox-unchecked-color": "rgba(var(--rgb-primary-text-color), 0.54)",
|
||||
"mdc-checkbox-disabled-color": "var(--disabled-text-color)",
|
||||
"mdc-radio-unchecked-color": "rgba(var(--rgb-primary-text-color), 0.54)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user