rename minZoomFactor to animations.maxZoomFactor

pull/15/head
Michail Vourlakos 5 years ago
parent 69aaedac5f
commit c9ec2bc957

@ -65,7 +65,7 @@ ContainerAbility.Animations {
}
}
minZoomFactor : {
maxZoomFactor : {
if (!active || !LatteCore.WindowSystem.compositingActive) {
return 1;
}

@ -503,7 +503,7 @@ Item {
property int tasksCount: latteApplet ? latteApplet.tasksCount : 0
property real maxZoomFactor: Math.max(zoomFactor, animations.minZoomFactor)
property real maxZoomFactor: Math.max(zoomFactor, animations.maxZoomFactor)
property rect screenGeometry: latteView ? latteView.screenGeometry : plasmoid.screenGeometry

@ -38,7 +38,7 @@ AbilityDefinition.Animations {
speedFactor: bridge ? bridge.animations.speedFactor : local.speedFactor
//! parabolic effect animations
minZoomFactor: bridge ? bridge.animations.minZoomFactor : local.minZoomFactor
maxZoomFactor: bridge ? bridge.animations.maxZoomFactor : local.maxZoomFactor
hoverPixelSensitivity: bridge ? bridge.animations.hoverPixelSensitivity : local.hoverPixelSensitivity
readonly property AbilityDefinition.Animations local: AbilityDefinition.Animations{}

@ -38,7 +38,7 @@ AbilityDefinition.Animations {
readonly property alias needThickness: apis.needThickness
//! parabolic effect animations
readonly property alias minZoomFactor: apis.minZoomFactor
readonly property alias maxZoomFactor: apis.maxZoomFactor
readonly property alias hoverPixelSensitivity: apis.hoverPixelSensitivity
}
}

@ -45,5 +45,5 @@ Item {
//! animations related to parabolic effect
property int hoverPixelSensitivity: 1
property real minZoomFactor : 1.0
property real maxZoomFactor : 1.0
}

@ -30,7 +30,7 @@ AppletAbility.Animations {
active: speedFactor.current !== 0
hoverPixelSensitivity: 1
minZoomFactor: speedFactor.current === 0 ? 1 : 1.65
maxZoomFactor: speedFactor.current === 0 ? 1 : 1.65
speedFactor.normal: active ? speedFactor.current : 1.0
speedFactor.current: plasmoid.configuration.durationTime

@ -232,7 +232,7 @@ Item {
readonly property real currentPanelOpacity: latteView ? latteView.currentPanelTransparency / 100 : 1
property real maxZoomFactor: latteView ? latteView.maxZoomFactor : Math.max(zoomFactor, animations.minZoomFactor)
property real maxZoomFactor: latteView ? latteView.maxZoomFactor : Math.max(zoomFactor, animations.maxZoomFactor)
property real zoomFactor: latteView ? latteView.zoomFactor : ( 1 + (plasmoid.configuration.zoomLevel / 20) )

@ -41,7 +41,7 @@ SequentialAnimation{
PropertyAnimation {
target: wrapper
property: (icList.orientation == Qt.Vertical) ? "tempScaleWidth" : "tempScaleHeight"
to: 1 + (thickPercentage * 2 * (taskItem.animations.minZoomFactor-1))
to: 1 + (thickPercentage * 2 * (taskItem.animations.maxZoomFactor-1))
duration: newWindowAnimation.speed
easing.type: Easing.OutQuad

Loading…
Cancel
Save