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

@ -19,10 +19,19 @@ PanelWindow {
if (_shown) {
_winVisible = true;
hideAnim.stop();
showAnim.start();
if (S.Theme.reducedMotion) {
content.opacity = 1;
content.y = 0;
} else {
showAnim.start();
}
} else {
showAnim.stop();
hideAnim.start();
if (S.Theme.reducedMotion) {
_winVisible = false;
} else {
hideAnim.start();
}
}
}