work on wallpaper switcher gui
This commit is contained in:
parent
a618427dae
commit
37a134f077
@ -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?
|
||||
|
||||
11
shell.qml
11
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user