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
@@ -4,7 +4,7 @@ import "../services"
|
||||
import "../theme"
|
||||
// A full-size wallpaper that changes with shaders/transition.frag: colonies, or
|
||||
// the new wallpaper's subject outline when helpers/wallfx.py has its maps.
|
||||
// The desktop background and the picker's live preview both draw with it.
|
||||
// One per output (WallpaperBackground).
|
||||
Item {
|
||||
id: root
|
||||
// The wallpaper to show. Changing it starts a change once the new image
|
||||
@@ -13,8 +13,6 @@ Item {
|
||||
// false: a change starts as soon as it is ready. true: it emits ready()
|
||||
// and waits for go(), so several outputs can start together.
|
||||
property bool waitForGo: false
|
||||
// Show the next path directly, without a change (consumed by that change).
|
||||
property bool instantNext: false
|
||||
signal loading()
|
||||
signal ready()
|
||||
// 0..1 while the new wallpaper takes over.
|
||||
@@ -25,8 +23,7 @@ Item {
|
||||
// The first wallpaper (and reduced motion) appears directly; later changes
|
||||
// load into `incoming` and are revealed once decoded.
|
||||
onTargetChanged: {
|
||||
if (!shown.source.toString() || Theme.duration === 0 || instantNext) {
|
||||
instantNext = false;
|
||||
if (!shown.source.toString() || Theme.duration === 0) {
|
||||
reveal.stop(); progress = 0; incoming.source = ""; shown.source = target;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user