Normalize animations in PlasmaComponents

This commit is contained in:
Sebastian Kügler 2014-02-04 00:16:55 +01:00
parent 27eae008d6
commit 86e458cdd0
4 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ Item {
from: 0
to: 360
duration: 1500
duration: units.longDuration * 6
running: busy.running
loops: Animation.Infinite
}

View File

@ -26,7 +26,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
* derivates)
*
* Provides built-in animation of Behavior on opacity Easing.OutQuad for a
* duration of 250.
* duration of 250 (defined in units.longDuration).
*
* (TODO, make optional? e.g. animate: false)
*/

View File

@ -94,7 +94,7 @@ Item {
Component.onCompleted: {
prefix = (listItem.sectionDelegate ? "section" : (listItem.checked ? "pressed" : "normal"))
}
Behavior on opacity { NumberAnimation { duration: 200 } }
Behavior on opacity { NumberAnimation { duration: units.longDuration } }
}
PlasmaCore.SvgItem {
svg: PlasmaCore.Svg {imagePath: "widgets/listitem"}

View File

@ -178,7 +178,7 @@ Item {
property bool completed: false
// Duration of transition animation (in ms)
property int transitionDuration: 250
property int transitionDuration: units.longDuration
// Sets the page status.
function setPageStatus(page, status)