Commit 3d9b344f authored by Devin Lin's avatar Devin Lin 🎨
Browse files

taskswitcher: Add task zoom animation

parent 06b02473
Pipeline #160528 passed with stages
in 1 minute and 24 seconds
......@@ -190,6 +190,22 @@ Item {
color: PlasmaCore.Theme.backgroundColor
clip: true
// scale animation on press (for longer than 50ms)
property real zoomScale: (tapHandler.pressed && tapHandler.timeHeld > 0.05) ? 0.9 : 1
Behavior on zoomScale {
NumberAnimation {
duration: 200
easing.type: Easing.OutExpo
}
}
transform: Scale {
origin.x: appView.width / 2;
origin.y: appView.height / 2;
xScale: appView.zoomScale
yScale: appView.zoomScale
}
Item {
id: item
anchors.fill: parent
......@@ -216,6 +232,8 @@ Item {
}
TapHandler {
id: tapHandler
cursorShape: Qt.PointingHandCursor
onTapped: delegate.activateApp()
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment