How to make buttons and others change when tapping on it

I watch youtube tutorials of how to make it and try to find the reddit page but no luck is there any answer to this

So, a simple example,

Create a global (switch, list, ff7c7c7c##Off, ffffffff##On) pick a default.

Create a lightbulb, or any test icon and set the paint colour to the global (tick, calc, calc, globe)

Create a switch icon. Set touch to toggle variable. Selext next or prev