mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
remove deprecated code and simplify
This commit is contained in:
parent
feb9261aeb
commit
2cbb3bc4b6
@ -112,18 +112,7 @@ Item {
|
||||
|
||||
//use the new parabolic effect manager in order to handle all parabolic effect messages
|
||||
var scales = parabolic.applyParabolicEffect(index, currentMousePosition, length);
|
||||
|
||||
//Left hiddenSpacer
|
||||
if(appletItem.firstAppletInContainer){
|
||||
hiddenSpacerLeft.nScale = scales.leftScale - 1;
|
||||
}
|
||||
|
||||
//Right hiddenSpacer ///there is one more item in the currentLayout ????
|
||||
if(appletItem.lastAppletInContainer){
|
||||
hiddenSpacerRight.nScale = scales.rightScale - 1;
|
||||
}
|
||||
|
||||
wrapper.zoomScale = parabolic.factor.zoom;
|
||||
wrapper.zoomScale = parabolic.factor.zoom;
|
||||
} //scale
|
||||
|
||||
|
||||
|
@ -16,8 +16,8 @@ AppletsContainer {
|
||||
readonly property int hiddenItemsCount: (parabolic.spread - 1)/2
|
||||
readonly property int animationTime: animations.speedFactor.normal * (1.2*animations.duration.small)
|
||||
|
||||
Behavior on tailOffsetLength {
|
||||
id: animatedTailLengthBehavior
|
||||
Behavior on parabolicOffset {
|
||||
id: animatedParabolicOffsetBehavior
|
||||
enabled: !parabolic.directRenderingEnabled || restoreAnimation.running
|
||||
NumberAnimation {
|
||||
duration: 3 * parabolicContainer.animationTime
|
||||
@ -25,22 +25,8 @@ AppletsContainer {
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on tailOffsetLength {
|
||||
enabled: !animatedTailLengthBehavior.enabled
|
||||
NumberAnimation { duration: 0 }
|
||||
}
|
||||
|
||||
Behavior on headOffsetLength {
|
||||
id: animatedHeadLengthBehavior
|
||||
enabled: !parabolic.directRenderingEnabled || restoreAnimation.running
|
||||
NumberAnimation {
|
||||
duration: 3 * parabolicContainer.animationTime
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on headOffsetLength {
|
||||
enabled: !animatedHeadLengthBehavior.enabled
|
||||
Behavior on parabolicOffset {
|
||||
enabled: !animatedParabolicOffsetBehavior.enabled
|
||||
NumberAnimation { duration: 0 }
|
||||
}
|
||||
|
||||
|
@ -133,16 +133,6 @@ Item {
|
||||
//use the new parabolic ability in order to handle all parabolic effect messages
|
||||
var scales = abilityItem.abilities.parabolic.applyParabolicEffect(index, currentMousePosition, length);
|
||||
|
||||
//Left hiddenSpacer for first task
|
||||
if(abilityItem.isFirstItemInContainer) {
|
||||
hiddenSpacerLeft.nScale = scales.leftScale - 1;
|
||||
}
|
||||
|
||||
//Right hiddenSpacer for last task
|
||||
if(abilityItem.isLastItemInContainer) {
|
||||
hiddenSpacerRight.nScale = scales.rightScale - 1;
|
||||
}
|
||||
|
||||
if (!parabolicItem.isUpdatingOnlySpacers) {
|
||||
abilityItem.parabolicItem.zoom = abilityItem.abilities.parabolic.factor.zoom;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user