mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
45 lines
1.1 KiB
QML
45 lines
1.1 KiB
QML
import Quickshell
|
|
import QtQuick
|
|
import ".."
|
|
|
|
Scope {
|
|
id: root
|
|
|
|
LazyLoader {
|
|
loading: true
|
|
|
|
Scope {
|
|
Variants {
|
|
model: Quickshell.screens
|
|
|
|
PanelWindow {
|
|
required property var modelData
|
|
color: "black"
|
|
aboveWindows: false
|
|
screen: modelData
|
|
|
|
anchors {
|
|
left: true
|
|
right: true
|
|
top: true
|
|
bottom: true
|
|
}
|
|
|
|
Image {
|
|
source: ShellSettings.settings.wallpaperUrl
|
|
fillMode: Image.PreserveAspectCrop
|
|
anchors.fill: parent
|
|
}
|
|
}
|
|
}
|
|
|
|
Connections {
|
|
target: ShellSettings.settings
|
|
|
|
function onWallpaperUrlChanged() {
|
|
console.log("Switching wallpaper: " + ShellSettings.settings.wallpaperUrl);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|