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:
1 parent
2a41cde6f5
commit
ebace10767
7 files changed
+240
-278
No files matched your search
@@ -116,11 +116,9 @@ 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,"wallpaperGrid");
|
||||
view.positionViewAtIndex(index,GridView.Contain);input.wait(50);
|
||||
const item=view.itemAtIndex(index);if(!item)return false;
|
||||
// Click previews; double-click applies.
|
||||
input.mouseDoubleClickSequence(item,item.width/2,item.height/2);return true;
|
||||
ShellState.wallpaperWindow.tileAt(index);input.wait(50);
|
||||
const item=ShellState.wallpaperWindow.tileAt(index);if(!item)return false;
|
||||
input.mouseClick(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 {
|
||||
|
||||
Reference in new issue
Block a user