From c3c7c11297b55c4c68b40fea004ca99d36f6bfd3 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Tue, 5 Apr 2022 15:22:57 -0400 Subject: [PATCH] misc: fix some more background animations Change-Id: Ie626cfcab08cd5ed69a0465e824238e8ce059868 Gitlab: #710 --- src/commoncomponents/SpinningAnimation.qml | 3 ++- src/commoncomponents/TypingDots.qml | 2 +- src/mainview/components/MessageBarTextArea.qml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commoncomponents/SpinningAnimation.qml b/src/commoncomponents/SpinningAnimation.qml index 837924eda..444512c9a 100644 --- a/src/commoncomponents/SpinningAnimation.qml +++ b/src/commoncomponents/SpinningAnimation.qml @@ -34,12 +34,13 @@ Item { property real outerCutRadius: root.height / 2 property int spinningAnimationDuration: 1000 + visible: mode !== SpinningAnimation.Mode.Disabled + ConicalGradient { id: conicalGradientOne anchors.fill: parent - visible: mode !== SpinningAnimation.Mode.Disabled angle: 0.0 gradient: Gradient { GradientStop { position: 0.5; color: "transparent" } diff --git a/src/commoncomponents/TypingDots.qml b/src/commoncomponents/TypingDots.qml index 8cfa94b38..d42d5582b 100644 --- a/src/commoncomponents/TypingDots.qml +++ b/src/commoncomponents/TypingDots.qml @@ -31,7 +31,7 @@ Row { Timer { repeat: true - running: true + running: root.visible interval: JamiTheme.typingDotsAnimationInterval onTriggered: { diff --git a/src/mainview/components/MessageBarTextArea.qml b/src/mainview/components/MessageBarTextArea.qml index 2020260ca..73ab909b1 100644 --- a/src/mainview/components/MessageBarTextArea.qml +++ b/src/mainview/components/MessageBarTextArea.qml @@ -87,7 +87,7 @@ JamiFlickable { SequentialAnimation on opacity { loops: Animation.Infinite - running: visible + running: textArea.cursorVisible NumberAnimation { from: 1 -- GitLab