mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
startupfeedback: Improve animation behaviour with activated apps
This commit is contained in:
parent
871bee83c0
commit
a7ac976263
1 changed files with 9 additions and 2 deletions
|
|
@ -67,8 +67,14 @@ MouseArea { // use mousearea to ensure clicks don't go behind
|
|||
target: WindowPlugin.WindowUtil
|
||||
|
||||
function onAppActivationStarted(appId, iconName) {
|
||||
if (!openAnimComplex.running) {
|
||||
iconParent.scale = 0.5;
|
||||
background.scale = 0.5;
|
||||
backgroundParent.x = 0
|
||||
backgroundParent.y = 0
|
||||
icon.source = iconName
|
||||
openAnimSimple.restart();
|
||||
openAnimComplex.restart();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -87,6 +93,7 @@ MouseArea { // use mousearea to ensure clicks don't go behind
|
|||
root.visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
// slight pause to give slower devices time to catch up when the item becomes visible
|
||||
PauseAnimation { duration: 20 }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue