Open Zren opened 1 year ago
Apparently there's no fade out animations ATM since the current fg/bg color is based on the current hover/pressed state. I'll need to rethink my button animation code to support these transitions.
I've hacked together a ifPressed || wasPressed
modification that works, but I think I'll look into a proper QPropertyAnimation on the colors (would need to be a grouped animation).
I currently use
InOutQuad
. Since the animation ofvalue
is0
(invisible) to1
(visible) I need to useOutCubic
. Since I reverse the animation, I don't need to bother switching toInCubic
though I should confirm that.