gate non-essential animations behind reducedMotion config toggle

This commit is contained in:
Damocles 2026-04-24 23:40:42 +02:00
parent 446edaab9c
commit ada611d6c5
8 changed files with 43 additions and 12 deletions

View file

@ -68,7 +68,13 @@ PanelWindow {
_heightScale = 1;
} else {
popupCol._knownIds[modelData.id] = true;
slideIn.start();
if (S.Theme.reducedMotion) {
opacity = 1;
x = 0;
_heightScale = 1;
} else {
slideIn.start();
}
}
_entered = true;
}
@ -82,7 +88,7 @@ PanelWindow {
}
Behavior on y {
enabled: popupItem._entered
enabled: popupItem._entered && !S.Theme.reducedMotion
NumberAnimation {
duration: 200
easing.type: Easing.OutCubic
@ -123,7 +129,11 @@ PanelWindow {
popupItem.modelData.beginDismiss();
_fullDismiss = !!full;
slideIn.stop();
slideOut.start();
if (S.Theme.reducedMotion) {
full ? S.NotifService.dismiss(modelData.id) : S.NotifService.dismissPopup(modelData.id);
} else {
slideOut.start();
}
}
SequentialAnimation {