Make the wallpaper picker a full-screen live preview

The screen previews the selected wallpaper with the real transition
(TransitionStage, now shared with the desktop background) under a
frosted sheet with a 16:9 thumbnail grid. Click or arrows preview,
double-click or Enter applies and switches the picker's output directly,
Space peeks, typing searches. Thumbnails mark outline wallpapers (wallfx
status).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-08 22:52:55 +01:00
1 parent b6d0da4679
commit de9b863f3f
7 files changed
+486 -221

No files matched your search

+4 -3
View File
@@ -116,10 +116,11 @@ Item {
}
function pickerQuery(text: string): void {input.findChild(ShellState.wallpaperWindow.contentItem,"wallpaperSearch").text=text;}
function pickerSelect(index: int): bool {
const view=input.findChild(ShellState.wallpaperWindow.contentItem,"wallpaperCarousel");
view.positionViewAtIndex(index,ListView.Contain);input.wait(50);
const view=input.findChild(ShellState.wallpaperWindow.contentItem,"wallpaperGrid");
view.positionViewAtIndex(index,GridView.Contain);input.wait(50);
const item=view.itemAtIndex(index);if(!item)return false;
input.mouseClick(item,item.width/2,item.height/2);return true;
// Click previews; double-click applies.
input.mouseDoubleClickSequence(item,item.width/2,item.height/2);return true;
}
function pickerScreenshot(path: string): bool {return input.findChild(ShellState.wallpaperWindow.contentItem,"wallpaperPickerSurface").grabToImage(result=>result.saveToFile(path));}
function geometry(name: string): string {