mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
tie transitions to reduced motion setting
This commit is contained in:
parent
3b339a8007
commit
f1ce494b74
12 changed files with 19 additions and 0 deletions
|
@ -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…
Reference in a new issue