tbh, I am not even sure the marked solution is The solution. It is what?
Its a list of most new color variables probably set to the colors they were before?
That might not even be close to a solution, because before, we couldn’t set many of these at all.
What I fear a bit, is that with this ‘solution’ people who didnt use themes before, dont really understand what’s changing, either with the new 2022.12 frontend, or with that Classic theme.
I am all for educating users, so they can create their frontend as much as possible to their liking, understanding the structures on which that frontend is built.
My post #3 was a fix of my already existing themes. Themes which were meticulously curated, and using the former color variables.
the snippet I posted fixed what had to be fixed, in those themes.
with these new color variables things are way more complex though than only setting those themes. Any card_mod working with the former color variables has to be scrutinized, because they most likely will no longer work correctly.
HA devs dont care about that, and state that time and time again. “We dont support that, so we dont need to document that either, and its no breaking changes because we didnt support that in the first place” …
example:
I had a footer mod on a script button:
- type: entities
state_color: true
title: Camera detection
show_header_toggle: false
card_mod:
style:
hui-buttons-header-footer $ hui-buttons-base $: |
.ha-scrollbar {
justify-content: space-evenly;
height: 50px;
align-content: center;
margin: -8px 0px 0px 0px;
--ha-chip-background-color: var(--primary-color);
--ha-chip-text-color: var(--card-background-color);
/*--paper-item-icon-active-color: red;*/
--secondary-text-color: var(--card-background-color);
}
and that used the up to then used --paper-item-icon-active-color
. turning the button to a red button when the script ran.
I had to take that out, and add the color variable for scripts to my theme:
state-icon-color: '#636B75'
# rgb-state-switch-color: 255, 215, 0 #(paper-item-icon-active-color: gold)
main-on-color: '#ffd700' #255, 215, 0
state-script-color: '#f00000' # red
state-switch-color: '#ffd700' # gold
state-automation-color: '#ffd700'
state-cover-color: '#ffd700'
state-fan-color: '#ffd700'
state-light-color: '#ffd700'
# state-binary-sensor-color: '#ffd700'
state-input-boolean-color: '#ffd700'
state-group-color: '#ffd700'
state-update-color: '#f44336' #red
state-person-home-color: '#008000'
badge-person-not-home-color: '#636B75'
state-person-zone-color: '#7b68ee' #mediumslateblue
# state-climate-heat-color: '#800080'
# state-climate-idle-color: '#000000'
fixed that particular button.
So you see, there’s more to it than a single theme substitute, and we need to understand why/what…