From f68b376edee6981a182df8c7a3d5e5e908b5b4cd Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 20 May 2017 00:39:58 +0300 Subject: [PATCH] animate active applet indicators --- containment/package/contents/ui/applet/ActiveIndicator.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containment/package/contents/ui/applet/ActiveIndicator.qml b/containment/package/contents/ui/applet/ActiveIndicator.qml index e2e266211..f0c0af557 100644 --- a/containment/package/contents/ui/applet/ActiveIndicator.qml +++ b/containment/package/contents/ui/applet/ActiveIndicator.qml @@ -63,7 +63,7 @@ Item{ property bool vertical: root.isVertical - property int animationTime: root.durationTime * (2.7*units.longDuration) + property int animationTime: root.durationTime * (1.5*units.longDuration) property int stateWidth: glowFrame.width property int stateHeight: glowFrame.height @@ -125,7 +125,7 @@ Item{ id: activeAndReverseAnimation target: activePoint property: root.isVertical ? "height" : "width" - to: activePoint.isActive ? (root.isVertical ? activePoint.stateHeight : activePoint.stateWidth) : glowFrame.size + to: !activePoint.isActive ? (root.isVertical ? activePoint.stateHeight : activePoint.stateWidth) : glowFrame.size duration: activePoint.animationTime easing.type: Easing.InQuad