1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Restructure lock screen

This commit is contained in:
bbedward
2025-10-13 17:44:09 -04:00
parent 3e167a2c52
commit a3ada5b2bb
10 changed files with 26 additions and 33 deletions

View File

@@ -54,26 +54,8 @@ Item {
WallpaperBackground {}
LazyLoader {
id: lockLoader
active: false
Lock {
id: lock
anchors.fill: parent
Component.onCompleted: {
IdleService.lockComponent = lock
}
}
}
Timer {
id: lockInitTimer
interval: 100
running: true
repeat: false
onTriggered: lockLoader.active = true
Lock {
id: lock
}
Loader {
@@ -195,7 +177,7 @@ Item {
powerMenuModalLoader: controlCenterLoader.powerModalLoaderRef
onLockRequested: {
lockLoader.item.activate()
lock.activate()
}
Component.onCompleted: {

View File

@@ -22,7 +22,7 @@ Rectangle {
property Item windowRoot: (Window.window ? Window.window.contentItem : null)
readonly property var sortedToplevels: {
if (SettingsData.runningAppsCurrentWorkspace) {
return CompositorService.filterCurrentWorkspace(CompositorService.sortedToplevels, parentScreen.name);
return CompositorService.filterCurrentWorkspace(CompositorService.sortedToplevels, parentScreen?.name);
}
return CompositorService.sortedToplevels;
}

View File

@@ -1,5 +1,6 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls
import qs.Common
import qs.Services
import qs.Widgets

View File

@@ -1,3 +1,5 @@
pragma ComponentBehavior: Bound
import QtQuick
import qs.Common

View File

@@ -1,3 +1,5 @@
pragma ComponentBehavior: Bound
import QtQuick
Item {

View File

@@ -1,3 +1,5 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Io
@@ -5,14 +7,12 @@ import Quickshell.Wayland
import qs.Common
import qs.Services
Item {
id: root
Scope {
property string sharedPasswordBuffer: ""
property bool shouldLock: false
Component.onCompleted: {
IdleService.lockComponent = root
IdleService.lockComponent = this
}
function activate() {
@@ -42,7 +42,7 @@ Item {
WlSessionLock {
id: sessionLock
locked: root.shouldLock
locked: shouldLock
WlSessionLockSurface {
color: "transparent"
@@ -50,12 +50,12 @@ Item {
LockSurface {
anchors.fill: parent
lock: sessionLock
sharedPasswordBuffer: root.sharedPasswordBuffer
sharedPasswordBuffer: sharedPasswordBuffer
onUnlockRequested: {
root.shouldLock = false
shouldLock = false
}
onPasswordChanged: newPassword => {
root.sharedPasswordBuffer = newPassword
sharedPasswordBuffer = newPassword
}
}
}

View File

@@ -1,3 +1,5 @@
pragma ComponentBehavior: Bound
import QtQuick
import qs.Common
import qs.Services

View File

@@ -1,6 +1,7 @@
pragma ComponentBehavior: Bound
import QtCore
import QtQuick
import QtQuick.Controls
import QtQuick.Effects
import QtQuick.Layouts
import Quickshell

View File

@@ -1,3 +1,5 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Wayland

View File

@@ -1,5 +1,6 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Wayland
import qs.Common