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