Label based styling and state based styles #694
CaptainVarghoss
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The main idea would be to reduce the overall complication of setting up custom styles for multiple items.
As an example, I have custom colors for my fans when they are on or off (2 different colors) as well as an animated icon when they’re on.
Instead of having to add the styles to each fan, some way to add these styles to any fan automatically would be nice.
One way to make it work that I thought of was maybe being able to add styles to labels? This would be pretty flexible I think as I have fans that are fan entities but also dumb fans on switch entities and adding the label ‘fan’ to both would categorize them and allow at least basic styles to be translated to the icon/button/sub-button.
In addition to the above, separated styles for states (on/off/whatever) instead of having to have a if/else on every icon and button individually would decrease a lot of the work.
Beta Was this translation helpful? Give feedback.
All reactions