lockscreen: replace lockscreen example
The new one uses the pam module and looks much nicer.
This commit is contained in:
parent
c30a4faf18
commit
a64b477dea
9 changed files with 190 additions and 126 deletions
|
@ -2,17 +2,24 @@ import QtQuick
|
|||
import Quickshell
|
||||
|
||||
ShellRoot {
|
||||
AuthContext {
|
||||
id: authContext
|
||||
onUnlocked: Qt.quit()
|
||||
LockContext {
|
||||
id: lockContext
|
||||
onUnlocked: Qt.quit();
|
||||
}
|
||||
|
||||
FloatingWindow {
|
||||
color: "#303030"
|
||||
|
||||
Lockscreen {
|
||||
LockSurface {
|
||||
anchors.fill: parent
|
||||
context: authContext
|
||||
context: lockContext
|
||||
}
|
||||
}
|
||||
|
||||
// exit the example if the window closes
|
||||
Connections {
|
||||
target: Quickshell
|
||||
|
||||
function onLastWindowClosed() {
|
||||
Qt.quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue