PlasmaExtras' animations use units.*Duration
This commit is contained in:
parent
90d2afb722
commit
2ba6bd6cbc
@ -19,14 +19,14 @@
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import "Animations.js" as Animations
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
SequentialAnimation {
|
||||
id: activateAnimation
|
||||
objectName: "activateAnimation"
|
||||
|
||||
property Item targetItem
|
||||
property int duration: Animations.normalDuration/5
|
||||
property int duration: units.shortDuration
|
||||
|
||||
// Fast scaling while we're animation == more FPS
|
||||
ScriptAction { script: targetItem.smooth = false }
|
||||
|
@ -1,8 +0,0 @@
|
||||
|
||||
.pragma library
|
||||
|
||||
// a normal animation
|
||||
var normalDuration = units.longDuration;
|
||||
|
||||
// for direct feedback, such as tapping
|
||||
var feedbackDuration = units.shortDuration;
|
@ -19,14 +19,13 @@
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import "Animations.js" as Animations
|
||||
|
||||
SequentialAnimation {
|
||||
id: appearAnimation
|
||||
objectName: "appearAnimation"
|
||||
|
||||
property Item targetItem
|
||||
property int duration: Animations.normalDuration
|
||||
property int duration: units.longDuration
|
||||
|
||||
// Fast scaling while we're animation == more FPS
|
||||
ScriptAction { script: { targetItem.smooth = false; targetItem.visible = true; } }
|
||||
|
@ -19,14 +19,14 @@
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import "Animations.js" as Animations
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
SequentialAnimation {
|
||||
id: disappearAnimation
|
||||
objectName: "disappearAnimation"
|
||||
|
||||
property Item targetItem
|
||||
property int duration: Animations.normalDuration
|
||||
property int duration: units.longDuration
|
||||
|
||||
ScriptAction { script: targetItem.smooth = false; }
|
||||
|
||||
|
@ -19,14 +19,14 @@
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import "Animations.js" as Animations
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
SequentialAnimation {
|
||||
id: pressedAnimation
|
||||
objectName: "pressedAnimation"
|
||||
|
||||
property Item targetItem
|
||||
property int duration: Animations.feedbackDuration
|
||||
property int duration: units.shortDuration
|
||||
|
||||
// Fast scaling while we're animation == more FPS
|
||||
ScriptAction { script: targetItem.smooth = false }
|
||||
|
@ -19,14 +19,14 @@
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import "Animations.js" as Animations
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
SequentialAnimation {
|
||||
id: releasedAnimation
|
||||
objectName: "releasedAnimation"
|
||||
|
||||
property Item targetItem
|
||||
property int duration: Animations.feedbackDuration
|
||||
property int duration: units.shortDuration
|
||||
|
||||
// Fast scaling while we're animation == more FPS
|
||||
ScriptAction { script: targetItem.smooth = false }
|
||||
|
Loading…
Reference in New Issue
Block a user