work on wallpaper switcher gui

This commit is contained in:
lucy 2025-12-22 15:16:00 +01:00
parent a618427dae
commit 37a134f077
2 changed files with 14 additions and 9 deletions

View File

@ -1,6 +1,7 @@
import QtQuick import QtQuick
import Quickshell import Quickshell
import Quickshell.Wayland import Quickshell.Wayland
import "."
WlrLayershell { WlrLayershell {
id: root id: root
@ -21,10 +22,19 @@ WlrLayershell {
exclusionMode: ExclusionMode.Ignore exclusionMode: ExclusionMode.Ignore
// 4. The actual content // 4. The actual content
Image { Image {
id: actualWall
anchors.fill: parent anchors.fill: parent
source: "/home/lucy/.walls/eoe.png" source: WallpaperStore.currentWall
fillMode: Image.PreserveAspectCrop 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? // Bonus: A dark rectangle to dim the wallpaper slightly?

View File

@ -1,16 +1,11 @@
//@ pragma UseQApplication //@ pragma UseQApplication
import qs.modules.bar import qs.modules.bar
import qs.modules.wallpaper
import Quickshell import Quickshell
import "./modules/wallpaper"
Scope { Scope {
Variants { WallSwitcher {}
id: wallpaperVariants Wallpaper {}
model: Quickshell.screens
delegate: Wallpaper {
screen: modelData
}
}
Variants { Variants {
id: barVariants id: barVariants
model: Quickshell.screens model: Quickshell.screens