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

idle: add fade to lock option

fixes #694
fixes #805
This commit is contained in:
bbedward
2025-11-24 10:59:36 -05:00
parent 6c4a9bcfb8
commit ee03853901
9 changed files with 582 additions and 385 deletions

View File

@@ -1,9 +1,7 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Wayland
import qs.Common
Rectangle {
id: root
@@ -14,7 +12,7 @@ Rectangle {
required property bool isLocked
signal passwordChanged(string newPassword)
signal unlockRequested()
signal unlockRequested
color: "transparent"
@@ -28,14 +26,14 @@ Rectangle {
onUnlockRequested: root.unlockRequested()
onPasswordBufferChanged: {
if (root.sharedPasswordBuffer !== passwordBuffer) {
root.passwordChanged(passwordBuffer)
root.passwordChanged(passwordBuffer);
}
}
}
onIsLockedChanged: {
if (!isLocked) {
lockContent.unlocking = false
lockContent.unlocking = false;
}
}
}