On the standard switch it´s not very clear visble, if the switch is on or off. So i want to color the whole button in green or red, when the switch is on/off.
Can someone tell me, if i can do this with the standard button? Or do i have to use a special widget for this? Is there one already?
Should be the same behavior as with the switch widget.
I have used the receiver icon, which changes dynamically according to the item state.
So if your preferred icon has a on and off variant it should work out of the box.
But i can´t find the standard switch icon from habpanel.
Off is a circle with a small line in on the upper side and on is a cricle with a dot in the middle.
Also on standard switch there are the words “off” or “on”.
I can find a light-icon in the colored icons for on and off, but this looks not so good inside habpanel. The other icon-sets only have lamps without a version for on and off.