latch lock screen animations after first wave completes

This commit is contained in:
Damocles 2026-04-18 11:43:34 +02:00
parent 570000f09a
commit a7d104df64
3 changed files with 23 additions and 5 deletions

View file

@ -28,13 +28,23 @@ WlSessionLockSurface {
anchors.fill: parent
opacity: _unlockFade
layer.enabled: true
property bool _revealed: false
layer.enabled: !_revealed
layer.effect: ShaderEffect {
property real uPhase: _hexWave.wavePhase
property real uWidth: root.width
fragmentShader: Quickshell.shellPath("modules/reveal_mask.frag.qsb")
}
Connections {
target: _hexWave
function onWavePhaseChanged() {
if (!parent._revealed && _hexWave.wavePhase >= root.width)
parent._revealed = true;
}
}
// Blurred screenshot
ScreencopyView {
anchors.fill: parent