diff options
author | Katja Marttila <katja.marttila@theqtcompany.com> | 2015-12-11 12:13:27 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@theqtcompany.com> | 2015-12-16 11:38:05 +0000 |
commit | 33fb04a584587211b7f590f2087653e6c09c6c1f (patch) | |
tree | 272a0773ceb98e23183875870d89e26818758efe | |
parent | b614d03be54e51b1dea80cc27ed34f09e8960146 (diff) |
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 <kalle.viironen@theqtcompany.com>
-rw-r--r-- | qml/ApplicationIcon.qml | 9 |
1 files 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 |