valuecolor not applied to the buttons in Sitemap-Switch
See original GitHub issueI have in a sitemap:
Switch item=rm label=“Switch [MAP(switcha.map):%s]” mappings=[ON=“AAA”, OFF=“BBB”] valuecolor=[ON=“green”, OFF=“red”, “blue”] labelcolor=[ON=“green”, OFF=“red”, “blue”]
This shows two choices on Android: AAA or BBB. The AAA and BBB choice are not colored with labelcolor. Instead labelcolor is used to present the value on the left of the choices (the [MAP(switcha.map):%s] content).
labelcolor shall change the color of the buttons/ON/OFF toggle.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to change color of CircularProgressIndicator
Three way to solve your problem · 1) Using valueColor property CircularProgressIndicator( valueColor: new AlwaysStoppedAnimation<Color>(Colors.
Read more >Sitemap - Switch - Beginners - openHAB Community
I'm starting to get somewhere with my Garage Door opener. I have created everything i.e. Bindings, Things, Channels and Items, ...
Read more >Button styles are not applied correctly · Issue #83900 - GitHub
Button styles are not applied correctly #83900 ... To change the text color for Button style buttons, you need to override foregroundColor ,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

What makes you think
labelcolorandvaluecolorshould be applied to the switches? From their naming,labelcolorshould apply to the label (Switchin your example), andvaluecolorapplies to the label (the cyrillic text in your example). I do not see any evidence in the docs that either color should apply to switches, and your BasicUI screenshot shows that (at least) BasicUI developers agree with that interpretation.I fully agree with @maniac103. The buttons aren’t part of the value and thus shouldn’t be colored.
The fact that Basic UI works in the same way is an indicator that both UIs work as intended.