Button (used for toggle) gets darker

Yes, there’s a whole thread about it: You set “isOn” manually, which automatically triggers “onValueChanged” and can then create an infinite loop of them calling each other. There’s an easier workaround for that: Set a bool before you access “isOn”, then check this bool in your “onValueChanged” method and simply don’t do anything if it’s set.

But that’s not the issue here. My button works fine as a toggle and I don’t even have to know when its “onClicked” is triggered, so I see no reason why I should replace it with an actual toggle. It’s just that I don’t know why it’s getting darker after toggling it once or, to be more exact, why it’s staying that way/keeping that darker overlay, even though I am setting the color back to normal.

Edit: What I just noticed:
If I long-press on the flash button, it becomes a bright magenta (which it should be) but if I just click on it to toggle it, it turns bright magenta for a split second, then turns a darker magenta and stays that way. So clicking on it is what triggers the darker color.