NPanel: added animation on backgroundColor to avoid snap/jumps

This commit is contained in:
ItsLemmy
2025-11-03 14:18:09 -05:00
parent 1279e0b4e3
commit af33eb7fe9
+7
View File
@@ -206,6 +206,13 @@ Item {
backgroundColor: root.attachedToBar ? Qt.alpha(root.panelBackgroundColor, Settings.data.bar.backgroundOpacity) : root.panelBackgroundColor
Behavior on backgroundColor {
ColorAnimation {
duration: Style.animationFast
easing.type: Easing.InOutQuad
}
}
// Animation properties
opacity: root.animationProgress
scale: root.attachedToBar ? 1 : (0.95 + root.animationProgress * 0.05)