tie transitions to reduced motion setting

This commit is contained in:
Karthik Nishanth 2024-06-23 18:24:39 -07:00
parent 3b339a8007
commit f1ce494b74
12 changed files with 19 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

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

View file

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

View file

@ -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 {

View file

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

View file

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

View file

@ -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 {

View file

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

View file

@ -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 {

View file

@ -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"

View file

@ -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 {