So I have a button with a given color. The color indicates the current state of some real-world object. I’ configured the default state, the pressed state, and any other state I can possibly configure for this button to this color.
Now I’d like to open a popup-menu when this button is pressed and indicate this color in some way in this popup.
Unfortunately, when I press the button, the color changes to some other color which I’ve never set in any way. So my popup gets NOT the color I configured for the button for all the states I could imagine. Right after I’m done creating the popup, the button reverts to the configured color.