1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

lockscreen: implement

This commit is contained in:
bbedward
2025-07-24 14:56:58 -04:00
parent 71be8bdeec
commit 8bcac36be3
9 changed files with 1133 additions and 74 deletions

View File

@@ -0,0 +1,47 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Wayland
import qs.Common
import qs.Modals
WlSessionLockSurface {
id: root
required property WlSessionLock lock
property bool thisLocked: false
readonly property bool locked: thisLocked && !lock.unlocked
function unlock(): void {
console.log("LockSurface.unlock() called")
lock.unlocked = true
animDelay.start()
}
Component.onCompleted: {
thisLocked = true
}
color: "transparent"
Timer {
id: animDelay
interval: 1500 // Longer delay for success feedback
onTriggered: root.lock.locked = false
}
PowerConfirmModal {
id: powerModal
}
Loader {
anchors.fill: parent
sourceComponent: LockScreenContent {
demoMode: false
powerModal: powerModal
onUnlockRequested: root.unlock()
}
}
}