When I touch a button then it will change color and when I don't touch it will back to its original color

When I touch a button then it will change color and when I don’t touch it will back to its original color. How to do this? Please help me.

have you tried anything so far? show us… Actually it is simple one

I tried but I couldn’t. I am new in Kodular.

how many buttons you are using??

What are the colours you want to get it on click

I want to use four buttons. I am just trying that’s why I used only one button. I want black to white when the button clicks.

Since you are new, try to learn the logic soon

Thanks For that But I want automatically color change to the original color when I remove my finger from the button.

Please Help

Then try with button got focus and lost focus event block

Can You Help, please

When Button_A Touch Down set colour to….

When Button_A Touch Up set colour to….

See documentation here.

2 Likes

Thank You so much, man :heart: