1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

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

This commit is contained in:
Kangheng Liu
2026-03-23 09:21:21 -04:00
committed by GitHub
parent 76dff870a7
commit c5f145be36

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