improve bouncing animation speed for plasma 5.18

pull/16/head
Michail Vourlakos 5 years ago
parent 3e3f39cfcd
commit 3b557bb923

@ -221,6 +221,7 @@ Item {
property bool useThemePanel: noApplets === 0 || !Latte.WindowSystem.compositingActive ?
true : (plasmoid.configuration.useThemePanel || plasmoid.configuration.solidBackgroundForMaximized)
property bool plasma515: Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,15,0)
property bool plasma518: Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,18,0)
property alias hoveredIndex: layoutsContainer.hoveredIndex

@ -65,7 +65,8 @@ Item {
//it is used to check both the applet and the containment for direct render
property bool globalDirectRender: latteView ? latteView.globalDirectRender : icList.directRender
property bool plasma515: Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,14,90)
property bool plasma515: latteView ? latteView.plasma515 : Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,15,0)
property bool plasma518: latteView ? latteView.plasma518 : Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,18,0)
property bool editMode: latteView ? latteView.editMode : plasmoid.userConfiguring
property bool inConfigureAppletsMode: latteView ? latteView.inConfigureAppletsMode : true
@ -242,7 +243,9 @@ Item {
property real animationsZoomFactor: latteView ? latteView.animationsZoomFactor : durationTime === 0 ? 1 : 1.65
property real maxZoomFactor: latteView ? latteView.maxZoomFactor : Math.max(zoomFactor, animationsZoomFactor)
property real appliedDurationTime: animationsEnabled ? durationTime : 2
readonly property real animationsSpeed2: plasma518 ? 1.00 : 2.00
property real appliedDurationTime: animationsEnabled ? durationTime : animationsSpeed2
property real durationTime: latteView ? latteView.durationTime : plasmoid.configuration.durationTime
property real zoomFactor: latteView ? latteView.zoomFactor : ( 1 + (plasmoid.configuration.zoomLevel / 20) )

@ -28,7 +28,7 @@ SequentialAnimation{
id:launcherAnimation
property bool launchedAlready: false
property int speed: root.durationTime * 0.8 * units.longDuration
property int speed: root.durationTime * 0.9 * units.longDuration
SequentialAnimation{
ScriptAction {

@ -28,7 +28,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
SequentialAnimation{
id:newWindowAnimation
property int speed: root.appliedDurationTime*units.longDuration
property int speed: root.appliedDurationTime*1.2*units.longDuration
property bool isDemandingAttention: taskItem.inAttention
property bool containsMouse: taskItem.containsMouse
property bool needsThicknessSent: false //flag to check if the signal for thickness was sent
@ -44,7 +44,7 @@ SequentialAnimation{
duration: newWindowAnimation.speed
easing.type: Easing.OutQuad
property real thickPercentage: taskItem.inAttentionAnimation ? 1 : 0.6
property real thickPercentage: taskItem.inAttentionAnimation ? 0.8 : 0.6
}
PropertyAnimation {
@ -60,7 +60,7 @@ SequentialAnimation{
target: wrapper
property: (icList.orientation == Qt.Vertical) ? "tempScaleWidth" : "tempScaleHeight"
to: 1
duration: 3*root.appliedDurationTime*newWindowAnimation.speed
duration: 4.4*newWindowAnimation.speed
easing.type: Easing.OutBounce
}
}

Loading…
Cancel
Save