Normalize animations in PlasmaComponents
This commit is contained in:
parent
27eae008d6
commit
86e458cdd0
@ -63,7 +63,7 @@ Item {
|
||||
|
||||
from: 0
|
||||
to: 360
|
||||
duration: 1500
|
||||
duration: units.longDuration * 6
|
||||
running: busy.running
|
||||
loops: Animation.Infinite
|
||||
}
|
||||
|
@ -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)
|
||||
*/
|
||||
|
@ -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"}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user