Show wallpapers as a justified gallery in the picker drawer

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>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-08 22:57:08 +01:00
1 parent 2a41cde6f5
commit ebace10767
7 files changed
+240 -278

No files matched your search

+1 -8
View File
@@ -48,18 +48,11 @@ Singleton {
next[output] = path;
observed = next;
}
// Output -> path that switches without a change, because the picker's live
// preview already shows it there (see WallpaperBackground).
property var instant: ({})
function apply(path, instantOutput) {
function apply(path) {
const outputs = selectedMonitor === "all" ? Quickshell.screens.map(s => s.name) : [monitor];
if (!ConfigService.ready || !ConfigService.writable || !outputs.length || !outputs[0] || busy)
return false;
error = "";
const nextInstant = {};
if (instantOutput)
nextInstant[instantOutput] = path;
instant = nextInstant;
prepareTransition(path);
// Native rendering needs no provider round trip: decode once, then switch
// every output in one write so their transitions start together.