[Example] Color based on multiple states #929
Replies: 4 comments 9 replies
-
Would something like this also be possible with other elements than color, e.g. icon, and also based on different states than the one of the entity? Currently I have for example the following custom style code to put a logo into a sub-button based on the media source currently plaing:
|
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Is this still working?I copied the code and changed the person entity, and i have state home but the colors are not working. |
Beta Was this translation helpful? Give feedback.
-
This one does not seem to work with latest beta 9, anybody else seen that? Colors stay as standard. .bubble-button-background { |
Beta Was this translation helpful? Give feedback.
-
Note: The color code after the
??
is the default value, when the state is not found in the list.Disclamer: I did not make this, but revised what @j_d posted.
Beta Was this translation helpful? Give feedback.
All reactions