Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
3d9b344f
Commit
3d9b344f
authored
Apr 06, 2022
by
Devin Lin
🎨
Browse files
taskswitcher: Add task zoom animation
parent
06b02473
Pipeline
#160528
passed with stages
in 1 minute and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
components/mobileshell/qml/taskswitcher/Task.qml
View file @
3d9b344f
...
...
@@ -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
()
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment