feat: animate dock apps on entry addition/deletion (#2064)

This commit is contained in:
Kangheng Liu authored and GitHub committed 2026-03-23 09:21:21 -04:00
1 parent 76dff870a7
commit c5f145be36
1 file changed
+14
+14
View File
@@ -73,6 +73,20 @@ Item {
id: appLayout
width: layoutFlow.width
height: layoutFlow.height
Behavior on width {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Easing.OutCubic
}
}
Behavior on height {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Easing.OutCubic
}
}
anchors.horizontalCenter: root.isVertical ? undefined : parent.horizontalCenter
anchors.verticalCenter: root.isVertical ? parent.verticalCenter : undefined
anchors.left: root.isVertical && SettingsData.dockPosition === SettingsData.Position.Left ? parent.left : undefined