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

@ -133,7 +133,12 @@ PanelWindow {
}
_winVisible = true;
hideAnim.stop();
showAnim.start();
if (S.Theme.reducedMotion) {
panelContainer.opacity = 1;
panelContainer.y = 0;
} else {
showAnim.start();
}
_grace = true;
_graceTimer.restart();
}
@ -141,7 +146,13 @@ PanelWindow {
function dismiss() {
_pinned = false;
showAnim.stop();
hideAnim.start();
if (S.Theme.reducedMotion) {
_winVisible = false;
if (popupMode)
dismissed();
} else {
hideAnim.start();
}
_grace = false;
_graceTimer.stop();
}