From c3894de0032390c09ddd28c8c2bf3b3bd9f5b4e9 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 9 Jan 2026 19:53:59 -0500 Subject: remove more things, make lock screen use wallpaper not screenshot --- modules/background/Background.qml | 6 ++++-- modules/controlcenter/state/LauncherState.qml | 7 ------- modules/lock/LockSurface.qml | 7 ++++--- 3 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 modules/controlcenter/state/LauncherState.qml (limited to 'modules') diff --git a/modules/background/Background.qml b/modules/background/Background.qml index 44d3491..1796a15 100644 --- a/modules/background/Background.qml +++ b/modules/background/Background.qml @@ -4,6 +4,7 @@ import qs.components import qs.components.containers import qs.services import qs.config +import qs.utils import Quickshell import Quickshell.Wayland import QtQuick @@ -31,10 +32,11 @@ Loader { anchors.left: true anchors.right: true - Item { - id: behindClock + Image { + id: wallpaper anchors.fill: parent + asynchronous: true Loader { id: wallpaper diff --git a/modules/controlcenter/state/LauncherState.qml b/modules/controlcenter/state/LauncherState.qml deleted file mode 100644 index 58f5fc8..0000000 --- a/modules/controlcenter/state/LauncherState.qml +++ /dev/null @@ -1,7 +0,0 @@ -import QtQuick - -QtObject { - id: root - - property var active: null -} diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index 279c551..c706067 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound import qs.components import qs.services import qs.config +import qs.utils import Quickshell.Wayland import QtQuick import QtQuick.Effects @@ -159,12 +160,12 @@ WlSessionLockSurface { } } - ScreencopyView { + Image { id: background anchors.fill: parent - captureSource: root.screen - opacity: 0 + source: Paths.wallpaper ?? "" + opacity: 1 layer.enabled: true layer.effect: MultiEffect { -- cgit v1.2.3-freya