mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 13:33:50 +03:00
animations improvements
--animate tasks hidden spacers properly when a task is inAttention and the user enters the mouse at first time when the task isnt zoomed --improve tasks hidden spacers animated behaviors --improve applets hidden spacers animated behaviors
This commit is contained in:
parent
607d6b4f4a
commit
35f53e6428
@ -42,13 +42,15 @@ Item{
|
||||
|
||||
property real nScale: 0
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: !root.globalDirectRender
|
||||
Behavior on nHiddenSize {
|
||||
id: animatedBehavior
|
||||
enabled: !root.globalDirectRender || restoreAnimation.running
|
||||
NumberAnimation { duration: 3 * container.animationTime }
|
||||
}
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender && !restoreAnimation.running
|
||||
Behavior on nHiddenSize {
|
||||
id: directBehavior
|
||||
enabled: !animatedBehavior.running
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ Item{
|
||||
property int separatorSpace: neighbourSeparator && !isSeparator
|
||||
&& !(parabolicManager.hasInternalSeparator && root.dragSource)
|
||||
&& !root.inActivityChange ? //fix for #846
|
||||
(2+root.iconMargin/2) : 0
|
||||
(2+root.iconMargin/2) : 0
|
||||
|
||||
property bool rightSpacer: false
|
||||
|
||||
@ -105,15 +105,17 @@ Item{
|
||||
|
||||
Component.onCompleted: hiddenSpacer.updateNeighbour();
|
||||
|
||||
|
||||
Behavior on separatorSpace {
|
||||
enabled: mainItemContainer.inFastRestoreAnimation || showWindowAnimation.running || root.inActivityChange
|
||||
Behavior on nHiddenSize {
|
||||
id: animatedBehavior
|
||||
enabled: (mainItemContainer.inFastRestoreAnimation || showWindowAnimation.running || restoreAnimation.running
|
||||
|| root.inActivityChange || mainItemContainer.inRemoveStage)
|
||||
|| (mainItemContainer.containsMouse && inAttentionAnimation && wrapper.mScale!==root.zoomFactor)
|
||||
NumberAnimation{ duration: 3 * mainItemContainer.animationTime }
|
||||
}
|
||||
|
||||
Behavior on separatorSpace {
|
||||
enabled: !mainItemContainer.inFastRestoreAnimation && !showWindowAnimation.running
|
||||
&& !restoreAnimation.running && !root.inActivityChange
|
||||
Behavior on nHiddenSize {
|
||||
id: directBehavior
|
||||
enabled: !animatedBehavior.running
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
|
@ -254,8 +254,14 @@ Item{
|
||||
hiddenSpacerRight.nScale = scales.rightScale - 1;
|
||||
}
|
||||
|
||||
if (!mainItemContainer.inAttentionAnimation)
|
||||
if (!mainItemContainer.inAttentionAnimation) {
|
||||
mScale = root.zoomFactor;
|
||||
} else {
|
||||
var subSpacerScale = (root.zoomFactor-1)/2;
|
||||
|
||||
hiddenSpacerLeft.nScale = subSpacerScale;
|
||||
hiddenSpacerRight.nScale = subSpacerScale;
|
||||
}
|
||||
|
||||
mainItemContainer.scalesUpdatedOnce = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user