latch lock screen animations after first wave completes
This commit is contained in:
parent
570000f09a
commit
a7d104df64
3 changed files with 23 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue