pragma ComponentBehavior: Bound import QtQuick import Quickshell import Quickshell.Wayland import "../services" import "../theme" // qmllint disable uncreatable-type PanelWindow { id:root required property var modelData screen:modelData anchors {top:true;bottom:true;left:true;right:true} color:Theme.surface exclusionMode:ExclusionMode.Ignore WlrLayershell.layer:WlrLayer.Background WlrLayershell.namespace:"glassMxrph-wallpaper" mask:Region {} readonly property string targetPath:ConfigService.ready ? (ConfigService.data.wallpaper.byMonitor[root.modelData.name] || "") : "" TransitionStage { id:stage anchors.fill:parent // Every output starts its change together (WallpaperService.revealSerial). waitForGo:true onLoading:WallpaperService.revealLoading(root.modelData.name) onReady:WallpaperService.revealReady(root.modelData.name) } // The picker's live preview already shows the wallpaper it applies on its // own output, so that output switches directly underneath it. onTargetPathChanged:{ stage.instantNext=WallpaperService.instant[root.modelData.name]===targetPath; stage.path=targetPath; } Component.onCompleted:stage.path=targetPath Connections { target:WallpaperService function onRevealSerialChanged() {stage.go();} } }