Zren / material-decoration

Material-ish window decoration theme for KWin, with LIM, based on zzag's original design.
GNU General Public License v2.0
197 stars 17 forks source link

Determine if I should use OutCubic for Button opacity animation #68

Open Zren opened 1 year ago

Zren commented 1 year ago

I currently use InOutQuad. Since the animation of value is 0 (invisible) to 1 (visible) I need to use OutCubic. Since I reverse the animation, I don't need to bother switching to InCubic though I should confirm that.

Zren commented 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).