Choose easing curve based on old and new brightness values
According to https://develop.kde.org/hig/style/animations/ when an item is animating from visible to invisible, InQuad should be used, OutQuad vice versa.
According to https://develop.kde.org/hig/style/animations/ when an item is animating from visible to invisible, InQuad should be used, OutQuad vice versa.