1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00
Files
DankMaterialShell/Modules/Lock/LockSurface.qml
2025-10-09 11:30:02 -04:00

31 lines
706 B
QML

import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Wayland
import qs.Common
Rectangle {
id: root
required property WlSessionLock lock
required property string sharedPasswordBuffer
signal passwordChanged(string newPassword)
signal unlockRequested()
color: "transparent"
LockScreenContent {
anchors.fill: parent
demoMode: false
passwordBuffer: root.sharedPasswordBuffer
screenName: ""
onUnlockRequested: root.unlockRequested()
onPasswordBufferChanged: {
if (root.sharedPasswordBuffer !== passwordBuffer) {
root.passwordChanged(passwordBuffer)
}
}
}
}