mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 18:15:41 +00:00
NPanel: added animation on backgroundColor to avoid snap/jumps
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user