I am trying to make a button that has the background to be 50% transparent, however, i dont want the the whole button to be 50% transparent. Here is a playground i made:
So i made a seperate rectangle to simulate a background, that is able to change without impacting the whole button. However even when i add that background to the button through button.addControl(buttonBackGround) it doesnt follow the button click animation.
Any idea what im doing wrong or how to fix it?