From 32f3fe347922585d3144bf82b275535d436d9c67 Mon Sep 17 00:00:00 2001 From: Scharel Clemens Date: Thu, 6 Dec 2018 16:01:43 +0100 Subject: [PATCH] Added fade animation for category tags --- qml/pages/EditPage.qml | 5 ++++- qml/pages/NotePage.qml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/qml/pages/EditPage.qml b/qml/pages/EditPage.qml index 6820e84..5b6ebf3 100644 --- a/qml/pages/EditPage.qml +++ b/qml/pages/EditPage.qml @@ -88,7 +88,10 @@ Dialog { x: Theme.horizontalPageMargin width: parent.width - 2*x spacing: Theme.paddingMedium - visible: categoryField.focus + visible: opacity > 0.0 + opacity: categoryField.focus ? 1.0 : 0.0 + Behavior on opacity { FadeAnimator { } } + Repeater { id: categoryRepeater model: account.categories diff --git a/qml/pages/NotePage.qml b/qml/pages/NotePage.qml index e4dcc99..eabdcd9 100644 --- a/qml/pages/NotePage.qml +++ b/qml/pages/NotePage.qml @@ -163,7 +163,10 @@ Dialog { x: Theme.horizontalPageMargin width: parent.width - 2*x spacing: Theme.paddingMedium - visible: categoryField.focus + visible: opacity > 0.0 + opacity: categoryField.focus ? 1.0 : 0.0 + Behavior on opacity { FadeAnimator { } } + Repeater { id: categoryRepeater model: account.categories