I added button and change it background-color by .setBackgroundColor()
function. But on mousedown button changes background-color to blue.
Default state:
After mousedown:
How I can prevent change background-color of button?
I added button and change it background-color by .setBackgroundColor()
function. But on mousedown button changes background-color to blue.
Default state:
After mousedown:
How I can prevent change background-color of button?
You can't, there's no function that allows you to change or disable the default behavior on mousedown
event for a TextButton object. I have tried setting the button with setOpenLink and setOnClickOpenLinkAction but the behavior is the same changing to the same blue color on mousedown
event regardless of the color you set to the button with setBackgroundColor
method.