From 33fb04a584587211b7f590f2087653e6c09c6c1f Mon Sep 17 00:00:00 2001 From: Katja Marttila Date: Fri, 11 Dec 2015 12:13:27 +0200 Subject: Replace glow animation Animated so non-focused apps has black 70% alpha and focused app is shown normal Change-Id: I39d0b9d9853a7e9885be4099cf96113474ad270d Task-number: QTRD-3774 Reviewed-by: Kalle Viironen --- qml/ApplicationIcon.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qml/ApplicationIcon.qml b/qml/ApplicationIcon.qml index 189268f..d66b005 100644 --- a/qml/ApplicationIcon.qml +++ b/qml/ApplicationIcon.qml @@ -49,9 +49,12 @@ Item { property real x2: appIcon.x2 - appIcon.x1; property real shift: appIcon.shift; - property real selection: appIcon.PathView.isCurrentItem ? 1.1 + 0.3 * Math.sin(_t) : 1; - property real _t; - NumberAnimation on _t { from: 0; to: 2 * Math.PI; duration: 3000; loops: Animation.Infinite; running: appIcon.PathView.isCurrentItem && shader.visible } + property real selection: appIcon.PathView.isCurrentItem ? 1 : 0.7; + + Behavior on selection { + NumberAnimation { duration: 2000; } + enabled: shader.visible + } mesh: "5x2" blending: false -- cgit v1.2.3