Commit 51940046 authored by Nate Graham's avatar Nate Graham
Browse files

Use more standard duration values

This lets these durations be scaled or disabled according to the user's
preferences. However we specifically do not want to use standard
scalable vaues for animated wallpaper pluguns like Hunyango and Haenau
which have their durations hardcoded for a reason.

CCBUG: 433948
parent cb64300e
......@@ -104,7 +104,7 @@ Item {
transitions: Transition {
from: ""; to: "show"; reversible: true
NumberAnimation { properties: "opacity"; duration: 250; easing.type: Easing.InOutQuad }
NumberAnimation { properties: "opacity"; duration: PlasmaCore.Units.longDuration; easing.type: Easing.InOutQuad }
}
}
}
......
......@@ -208,7 +208,7 @@ Item {
transitions:
Transition {
AnchorAnimation {
duration: 500
duration: PlasmaCore.Units.veryLongDuration
easing.type: Easing.InOutQuad
}
}
......
......@@ -156,7 +156,7 @@ FocusScope {
hover: true
}
highlightMoveDuration: 250
highlightMoveDuration: PlasmaCore.Units.longDuration
highlightMoveVelocity: 1
}
}
......
......@@ -255,8 +255,8 @@ Item {
id: faderAnimation
ParallelAnimation {
OpacityAnimator { target: frontImage; from: 1; to: 0; duration: 450 }
OpacityAnimator { target: bufferImage; from: 0; to: 1; duration: 450 }
OpacityAnimator { target: frontImage; from: 1; to: 0; duration: PlasmaCore.Units.veryLongDuration }
OpacityAnimator { target: bufferImage; from: 0; to: 1; duration: PlasmaCore.Units.veryLongDuration }
}
ScriptAction {
script: {
......
......@@ -261,7 +261,7 @@ DropArea {
anchors.fill: parent
opacity: root.containsDrag || tooltipArea.containsMouse ? .3 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }
Behavior on opacity { NumberAnimation { duration: PlasmaCore.Units.shortDuration } }
}
Timer {
......
......@@ -37,22 +37,22 @@ Item {
running: root.suspended;
loops: Animation.Infinite;
NumberAnimation {
duration: 800;
duration: PlasmaCore.Units.veryLongDuration * 2;
from: 1.0;
to: 0.2;
easing.type: Easing.InOutQuad;
}
PauseAnimation {
duration: 400;
duration: PlasmaCore.Units.veryLongDuration;
}
NumberAnimation {
duration: 800;
duration: PlasmaCore.Units.veryLongDuration * 2;
from: 0.2;
to: 1.0;
easing.type: Easing.InOutQuad;
}
PauseAnimation {
duration: 400;
duration: PlasmaCore.Units.veryLongDuration;
}
}
}
......
......@@ -89,7 +89,7 @@ KWin.Switcher {
}
}
}
highlightMoveDuration: 250
highlightMoveDuration: PlasmaCore.Units.longDuration
boundsBehavior: Flickable.StopAtBounds
Connections {
target: tabBox
......
......@@ -17,6 +17,10 @@ PlasmaCore.SvgItem {
function change() {changeAnimation.running = true}
// Intentionally not using a standard duration value for these, as this is
// an animated wallpaper so disabling animations doesn't make sense, and the
// duration shouldn't be scaled with the user's preferences because this is
// tuned to create a specific visual effect.
SequentialAnimation {
id: changeAnimation
NumberAnimation {
......
......@@ -18,6 +18,10 @@ PlasmaCore.SvgItem {
function change() {changeAnimation.running = true}
// Intentionally not using a standard duration value for these, as this is
// an animated wallpaper so disabling animations doesn't make sense, and the
// duration shouldn't be scaled with the user's preferences because this is
// tuned to create a specific visual effect.
SequentialAnimation {
id: changeAnimation
NumberAnimation {
......
......@@ -18,6 +18,10 @@ PlasmaCore.SvgItem {
function change() {changeAnimation.running = true}
// Intentionally not using a standard duration value for these, as this is
// an animated wallpaper so disabling animations doesn't make sense, and the
// duration shouldn't be scaled with the user's preferences because this is
// tuned to create a specific visual effect.
SequentialAnimation {
id: changeAnimation
NumberAnimation {
......
......@@ -40,5 +40,9 @@ Rectangle {
interval: 30000
onTriggered: randomColor()
}
// Intentionally not using a standard duration value as this is an animated
// wallpaper so disabling animations doesn't make sense, and the duration
// shouldn't be scaled with the user's preferences because this is tuned to
// create a specific visual effect.
Behavior on color { ColorAnimation { duration: 1000; easing.type: Easing.InQuad } }
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment