diff --git a/src/qml/Base/HXAnimator.qml b/src/qml/Base/HXAnimator.qml new file mode 100644 index 00000000..e1c5a861 --- /dev/null +++ b/src/qml/Base/HXAnimator.qml @@ -0,0 +1,7 @@ +import QtQuick 2.12 + +XAnimator { + duration: theme.animationDuration * factor + + property real factor: 1.0 +} diff --git a/src/qml/Base/HYAnimator.qml b/src/qml/Base/HYAnimator.qml new file mode 100644 index 00000000..d59c00a1 --- /dev/null +++ b/src/qml/Base/HYAnimator.qml @@ -0,0 +1,7 @@ +import QtQuick 2.12 + +YAnimator { + duration: theme.animationDuration * factor + + property real factor: 1.0 +} diff --git a/src/qml/Chat/Timeline/EventDelegate.qml b/src/qml/Chat/Timeline/EventDelegate.qml index 02733ceb..379afa69 100644 --- a/src/qml/Chat/Timeline/EventDelegate.qml +++ b/src/qml/Chat/Timeline/EventDelegate.qml @@ -99,7 +99,7 @@ Column { id: eventContent width: parent.width - Behavior on x { HNumberAnimation {} } + Behavior on x { HXAnimator {} } }