tie transitions to reduced motion setting

pull/1760/head
Karthik Nishanth 5 months ago
parent 3b339a8007
commit f1ce494b74
  1. 2
      resources/qml/MatrixTextField.qml
  2. 2
      resources/qml/MessageInput.qml
  3. 1
      resources/qml/MessageView.qml
  4. 1
      resources/qml/PrivacyScreen.qml
  5. 2
      resources/qml/Root.qml
  6. 1
      resources/qml/TimelineBubbleMessageStyle.qml
  7. 1
      resources/qml/TimelineDefaultMessageStyle.qml
  8. 2
      resources/qml/ToggleButton.qml
  9. 1
      resources/qml/delegates/ImageMessage.qml
  10. 2
      resources/qml/ui/RippleImpl.qml
  11. 2
      resources/qml/ui/Snackbar.qml
  12. 2
      resources/qml/ui/media/MediaControls.qml

@ -79,6 +79,7 @@ ColumnLayout {
from: ""
reversible: true
to: "focused"
enabled: !Settings.reducedMotion
NumberAnimation {
alwaysRunToEnd: true
@ -164,6 +165,7 @@ ColumnLayout {
from: ""
reversible: true
to: "focused"
enabled: !Settings.reducedMotion
NumberAnimation {
alwaysRunToEnd: true

@ -335,6 +335,7 @@ Rectangle {
y: messageInput.positionToRectangle(messageInput.completerTriggeredAt).y - height
enter: Transition {
enabled: !Settings.reducedMotion
NumberAnimation {
duration: 100
from: 0
@ -343,6 +344,7 @@ Rectangle {
}
}
exit: Transition {
enabled: !Settings.reducedMotion
NumberAnimation {
duration: 100
from: 1

@ -667,6 +667,7 @@ Item {
from: ""
reversible: true
to: "shown"
enabled: !Settings.reducedMotion
SequentialAnimation {
PauseAnimation {

@ -68,6 +68,7 @@ Item {
from: "Invisible"
reversible: true
to: "Visible"
enabled: !Settings.reducedMotion
SequentialAnimation {
NumberAnimation {

@ -432,6 +432,7 @@ Pane {
Transition {
id: reducedMotionTransitionExit
enabled: !Settings.reducedMotion
PropertyAnimation {
duration: 200
@ -442,6 +443,7 @@ Pane {
}
Transition {
id: reducedMotionTransitionEnter
enabled: !Settings.reducedMotion
SequentialAnimation {
PropertyAction {

@ -107,6 +107,7 @@ TimelineEvent {
transitions: Transition {
from: ""
to: "revealed"
enabled: !Settings.reducedMotion
SequentialAnimation {
PropertyAnimation {

@ -107,6 +107,7 @@ TimelineEvent {
transitions: Transition {
from: ""
to: "revealed"
enabled: !Settings.reducedMotion
SequentialAnimation {
PropertyAnimation {

@ -5,6 +5,7 @@
import QtQuick 2.5
import QtQuick 2.12
import QtQuick.Controls 2.12
import im.nheko 1.0
Switch {
id: toggleButton
@ -66,6 +67,7 @@ Switch {
Transition {
reversible: true
to: "off"
enabled: !Settings.reducedMotion
ParallelAnimation {
NumberAnimation {

@ -72,6 +72,7 @@ AbstractButton {
from: "ImageVisible"
to: "BlurhashVisible"
reversible: true
enabled: !Settings.reducedMotion
SequentialAnimation {
PropertyAction {

@ -59,6 +59,7 @@ Item {
Transition {
from: "NORMAL"
to: "ACTIVE"
enabled: !Settings.reducedMotion
SequentialAnimation {
//PropertyAction { target: circle; property: "centerX"; value: ph.point.position.x }
@ -87,6 +88,7 @@ Item {
Transition {
from: "ACTIVE"
to: "NORMAL"
enabled: !Settings.reducedMotion
SequentialAnimation {
ParallelAnimation {

@ -61,6 +61,7 @@ Popup {
}
enter: Transition {
enabled: !Settings.reducedMotion
NumberAnimation {
target: snackbar
property: "opacity"
@ -79,6 +80,7 @@ Popup {
}
}
exit: Transition {
enabled: !Settings.reducedMotion
NumberAnimation {
target: snackbar
property: "opacity"

@ -146,6 +146,7 @@ Rectangle {
Transition {
from: ""
to: "shown"
enabled: !Settings.reducedMotion
SequentialAnimation {
PauseAnimation {
@ -163,6 +164,7 @@ Rectangle {
Transition {
from: "shown"
to: ""
enabled: !Settings.reducedMotion
SequentialAnimation {
PauseAnimation {

Loading…
Cancel
Save