Back to the drawer picker, now with justified rows: each thumbnail keeps its aspect ratio (read from the file header by the scan) and every row fills the width. Arrows move in two dimensions, click or Enter applies, ✦ marks outline wallpapers. Drops the full-screen preview picker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.1 KiB
QML
34 lines
1.1 KiB
QML
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)
|
|
}
|
|
onTargetPathChanged:stage.path=targetPath
|
|
Component.onCompleted:stage.path=targetPath
|
|
Connections {
|
|
target:WallpaperService
|
|
function onRevealSerialChanged() {stage.go();}
|
|
}
|
|
}
|