diff --git a/modules/gui/qt/widgets/qml/AnimatedBackground.qml b/modules/gui/qt/widgets/qml/AnimatedBackground.qml index 153863b1a4..89365e7812 100644 --- a/modules/gui/qt/widgets/qml/AnimatedBackground.qml +++ b/modules/gui/qt/widgets/qml/AnimatedBackground.qml @@ -49,6 +49,8 @@ Rectangle { property bool animationRunning: borderAnimation.running || bgAnimation.running + property bool animate: true + //--------------------------------------------------------------------------------------------- // Implementation //--------------------------------------------------------------------------------------------- @@ -66,6 +68,8 @@ Rectangle { //--------------------------------------------------------------------------------------------- Behavior on border.color { + enabled: root.animate + ColorAnimation { id: borderAnimation @@ -74,6 +78,7 @@ Rectangle { } Behavior on color { + enabled: root.animate ColorAnimation { id: bgAnimation @@ -82,6 +87,7 @@ Rectangle { } Behavior on foregroundColor { + enabled: root.animate ColorAnimation { duration: root.animationDuration }