mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
fix directRenderAnimationTime
--use a small duration of 20ms for the directRenderAnimationTime in order to add a bit more smoothness in the parabolic animation when directRender is activated
This commit is contained in:
parent
46106a5bd1
commit
d15b84319c
@ -326,13 +326,8 @@ Item {
|
||||
property real nScale: 0
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: !root.globalDirectRender
|
||||
NumberAnimation { duration: 3*container.animationTime }
|
||||
}
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
NumberAnimation { duration: root.globalDirectRender ?
|
||||
root.directRenderAnimationTime : 3*container.animationTime }
|
||||
}
|
||||
|
||||
Loader{
|
||||
@ -837,13 +832,8 @@ Item {
|
||||
}
|
||||
|
||||
Behavior on zoomScale {
|
||||
enabled: !root.globalDirectRender
|
||||
NumberAnimation { duration: 3*container.animationTime }
|
||||
}
|
||||
|
||||
Behavior on zoomScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
NumberAnimation { duration: root.globalDirectRender ?
|
||||
root.directRenderAnimationTime : 3*container.animationTime }
|
||||
}
|
||||
|
||||
//!this is used in order to update the index when the signal is for the internal latte plasmoid
|
||||
@ -1023,13 +1013,8 @@ Item {
|
||||
property real nScale: 0
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: !root.globalDirectRender
|
||||
NumberAnimation { duration: 3*container.animationTime }
|
||||
}
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
NumberAnimation { duration: root.globalDirectRender ?
|
||||
root.directRenderAnimationTime : 3*container.animationTime }
|
||||
}
|
||||
|
||||
Loader{
|
||||
|
@ -48,7 +48,7 @@ DragDrop.DropArea {
|
||||
property bool debugMode: Qt.application.arguments.indexOf("--graphics")>=0
|
||||
property bool globalDirectRender: false //it is used as a globalDirectRender for all elements in the dock
|
||||
property bool directRenderTimerIsRunning: enableDirectRenderTimer.running
|
||||
property int directRenderAnimationTime: 0
|
||||
property int directRenderAnimationTime: 20
|
||||
|
||||
property bool addLaunchersMessage: false
|
||||
property bool addLaunchersInTaskManager: plasmoid.configuration.addLaunchersInTaskManager
|
||||
|
@ -272,13 +272,8 @@ MouseArea{
|
||||
property real nScale: 0
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: !root.globalDirectRender
|
||||
NumberAnimation { duration: 3 * mainItemContainer.animationTime }
|
||||
}
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
NumberAnimation { duration: root.globalDirectRender ?
|
||||
root.directRenderAnimationTime : 3 * mainItemContainer.animationTime }
|
||||
}
|
||||
|
||||
/* Rectangle{
|
||||
@ -394,13 +389,8 @@ MouseArea{
|
||||
}*/
|
||||
|
||||
Behavior on mScale {
|
||||
enabled: !root.globalDirectRender
|
||||
NumberAnimation { duration: 3 * mainItemContainer.animationTime }
|
||||
}
|
||||
|
||||
Behavior on mScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
NumberAnimation { duration: root.globalDirectRender ?
|
||||
root.directRenderAnimationTime : 3 * mainItemContainer.animationTime }
|
||||
}
|
||||
|
||||
Flow{
|
||||
@ -630,13 +620,8 @@ MouseArea{
|
||||
property real nScale: 0
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: !root.globalDirectRender
|
||||
NumberAnimation { duration: 3 * mainItemContainer.animationTime }
|
||||
}
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
NumberAnimation { duration: root.globalDirectRender ?
|
||||
root.directRenderAnimationTime : 3 * mainItemContainer.animationTime }
|
||||
}
|
||||
|
||||
/* Rectangle{
|
||||
|
@ -143,7 +143,7 @@ Item {
|
||||
property bool smartLaunchersEnabled: latteDock ? latteDock.smartLaunchersEnabled : plasmoid.configuration.smartLaunchersEnabled
|
||||
property bool threeColorsWindows: latteDock ? latteDock.threeColorsWindows : plasmoid.configuration.threeColorsWindows
|
||||
|
||||
property int directRenderAnimationTime: latteDock ? latteDock.directRenderAnimationTime : 0
|
||||
property int directRenderAnimationTime: latteDock ? latteDock.directRenderAnimationTime : 20
|
||||
property int dockHoveredIndex : latteDock ? latteDock.hoveredIndex : -1
|
||||
property int iconMargin: latteDock ? latteDock.iconMargin : 0.12*iconSize
|
||||
property int iconSize: latteDock ? latteDock.iconSize : Math.max(plasmoid.configuration.iconSize, 16)
|
||||
|
Loading…
x
Reference in New Issue
Block a user