[solved] Button pressed to change color

I cannot figure out how to make a pressed button change color and stay that color.

For example:
My button is blue and want it to change to red when pressed and stay red.

Could someone help with this please?

Since it says solved, we should probably add a solution here. I’m not sure what was done in this case, but one way to handle this is by creating a custom state on the button and then have the color of the button conditionally set based on the state. When the button is clicked it should toggle the state, for example. You can create a Yes No (boolean) state if the button should either be one color or the other.

1 Like

Yes Sorry that is how I did it.
I found another post that described how to do it.

Which thread did you find the solution?