mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
set global direct render animation time
This commit is contained in:
parent
6fb56f90b1
commit
7482182e24
@ -70,7 +70,6 @@ Item {
|
||||
|
||||
|
||||
property int animationTime: root.durationTime* (1.2 *units.shortDuration) // 70
|
||||
property int directAnimationTime: 0
|
||||
property int hoveredIndex: layoutsContainer.hoveredIndex
|
||||
property int index: -1
|
||||
property int appletMargin: (applet && (applet.pluginName === root.plasmoidName))
|
||||
@ -333,7 +332,7 @@ Item {
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: container.directAnimationTime }
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
Loader{
|
||||
@ -844,7 +843,7 @@ Item {
|
||||
|
||||
Behavior on zoomScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: container.directAnimationTime }
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
//!this is used in order to update the index when the signal is for the internal latte plasmoid
|
||||
@ -1030,7 +1029,7 @@ Item {
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: container.directAnimationTime }
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
Loader{
|
||||
|
@ -48,6 +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: 20
|
||||
|
||||
property bool addLaunchersMessage: false
|
||||
property bool addLaunchersInTaskManager: plasmoid.configuration.addLaunchersInTaskManager
|
||||
|
@ -94,7 +94,6 @@ MouseArea{
|
||||
|
||||
property int animationTime: root.durationTime * 1.2 * units.shortDuration
|
||||
property int badgeIndicator: 0 //it is used from external apps
|
||||
property int directAnimationTime: 0
|
||||
property int hoveredIndex: icList.hoveredIndex
|
||||
property int itemIndex: index
|
||||
property int lastValidIndex: -1 //used for the removal animation
|
||||
@ -279,7 +278,7 @@ MouseArea{
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: mainItemContainer.directAnimationTime }
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
/* Rectangle{
|
||||
@ -401,7 +400,7 @@ MouseArea{
|
||||
|
||||
Behavior on mScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: mainItemContainer.directAnimationTime }
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
Flow{
|
||||
@ -637,7 +636,7 @@ MouseArea{
|
||||
|
||||
Behavior on nScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: mainItemContainer.directAnimationTime }
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
/* Rectangle{
|
||||
|
@ -143,6 +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 : 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