From 37a134f07761e6cbdc15c5a048e175a6ba1ec6d6 Mon Sep 17 00:00:00 2001 From: lucy Date: Mon, 22 Dec 2025 15:16:00 +0100 Subject: [PATCH] work on wallpaper switcher gui --- modules/wallpaper/Wallpaper.qml | 12 +++++++++++- shell.qml | 11 +++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/modules/wallpaper/Wallpaper.qml b/modules/wallpaper/Wallpaper.qml index d54d2b3..8d2e79e 100644 --- a/modules/wallpaper/Wallpaper.qml +++ b/modules/wallpaper/Wallpaper.qml @@ -1,6 +1,7 @@ import QtQuick import Quickshell import Quickshell.Wayland +import "." WlrLayershell { id: root @@ -21,10 +22,19 @@ WlrLayershell { exclusionMode: ExclusionMode.Ignore // 4. The actual content + Image { + id: actualWall anchors.fill: parent - source: "/home/lucy/.walls/eoe.png" + source: WallpaperStore.currentWall fillMode: Image.PreserveAspectCrop + + Behavior on source { + NumberAnimation { + duration: 500 + } + } + onSourceChanged: console.log("🖼️ Wallpaper noticed change! New source: " + source) } // Bonus: A dark rectangle to dim the wallpaper slightly? diff --git a/shell.qml b/shell.qml index 56b4ccf..aee501c 100644 --- a/shell.qml +++ b/shell.qml @@ -1,16 +1,11 @@ //@ pragma UseQApplication import qs.modules.bar -import qs.modules.wallpaper import Quickshell +import "./modules/wallpaper" Scope { - Variants { - id: wallpaperVariants - model: Quickshell.screens - delegate: Wallpaper { - screen: modelData - } - } + WallSwitcher {} + Wallpaper {} Variants { id: barVariants model: Quickshell.screens