This came up while trying to implement a "modal dialog" using a transparent rectangle with a TouchArea covering the window: If a button is pressed and the clicked callback makes TouchArea visible that covers the point where the button was clicked, the button stays in a "highlighted" state. Here is a simplified example:
This came up while trying to implement a "modal dialog" using a transparent rectangle with a TouchArea covering the window: If a button is pressed and the
clicked
callback makes TouchArea visible that covers the point where the button was clicked, the button stays in a "highlighted" state. Here is a simplified example:It is pretty noticable in the
fluent-dark
style:Before pressing the button:
After pressing the button: