This commit is contained in:
2026-03-29 13:16:40 -05:00
parent adcd560180
commit 7a15a983af
26 changed files with 685 additions and 423 deletions

View File

@@ -15,17 +15,19 @@ Item {
property bool locked: false
onLockedChanged: lock.locked = locked
onLockedChanged: {
lock.locked = locked
}
required property string bg_path
property color fieldColor: ctx.failed ? "red" : Pywal.colors.color1
property color fieldColor: ctx.failed ? Pywal.colors.color6 : Pywal.colors.color1
IpcHandler {
target: "lockscreen"
function lock() { lock.locked = true; }
function unlock() { lock.locked = false; }
function lock() { root.locked = true; }
function unlock() { root.locked = false; }
}
LockCtx {
@@ -33,6 +35,11 @@ Item {
onShouldUnlock: lock.locked = false
}
LockScreen {
id: lockscreen
visible: root.locked
}
WlSessionLock {
@@ -47,50 +54,52 @@ Item {
WlSessionLockSurface {
color: "transparent"
Image {
/*Image {
anchors.fill: parent
source: Qt.resolvedUrl(bg_path)
ClippingWrapperRectangle {
}*/
ClippingWrapperRectangle {
anchors.centerIn: parent
radius: 10
anchors.centerIn: parent
radius: 10
color: Pywal.special.background
color: Pywal.special.background
RowLayout {
ClippingWrapperRectangle {
color: root.fieldColor
implicitWidth: 200
TextInput {
text: ""
RowLayout {
ClippingWrapperRectangle {
color: root.fieldColor
implicitWidth: 200
TextInput {
text: ""
onTextChanged: {
ctx.pass = text
}
horizontalAlignment: TextInput.AlignHCenter
font.pointSize: 30
//echoMode: TextInput.Password
color: Pywal.special.foreground
onTextChanged: {
ctx.pass = text
}
}
Button {
text: "unlock"
onClicked: {
ctx.doUnlock()
}
}
echoMode: TextInput.Password
Button {
text: "exit"
onClicked: root.locked = false
horizontalAlignment: TextInput.AlignHCenter
verticalAlignment: TextInput.AlignVCenter
font.pointSize: 30
color: Pywal.special.foreground
}
}
Button {
text: "unlock"
onClicked: {
ctx.doUnlock()
}
}
Button {
text: "exit"
onClicked: root.locked = false
}
}
}
}