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 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?

View File

@ -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