lock screen: show clock and widgets immediately when reducedMotion

This commit is contained in:
Damocles 2026-04-22 21:31:10 +02:00
parent 8c2f362d04
commit b8789c67f4
2 changed files with 6 additions and 4 deletions

View file

@ -10,11 +10,12 @@ Item {
readonly property real _fontSize: Math.max(48, screenHeight * 0.28)
// Appear as wave reaches the clock (left edge), latch once fully revealed
// Appear as wave reaches the clock (left edge), latch once fully revealed.
// With reducedMotion the wave never runs, so show immediately.
property bool _revealed: false
on_RawProgressChanged: if (_rawProgress >= 1)
_revealed = true
readonly property real _rawProgress: Math.max(0, Math.min(1, wavePhase / 300))
readonly property real _rawProgress: S.Theme.reducedMotion ? 1 : Math.max(0, Math.min(1, wavePhase / 300))
readonly property real _progress: (_revealed ? 1 : _rawProgress) * unlockFade
opacity: _progress
property real _slideX: (1 - _progress) * -80