Repository navigation
Show the image picker instantly, with no backdrop - #14709
Conversation
Remove the carousel's fade and geometry transitions, hold the reveal until every visible preview has decoded and two frames have pre-rendered (falling back to revealing anyway after 400ms), and drop the fullscreen scrim and its theme tokens so the picker sits directly on the desktop. Only Escape is accepted before the picker is visible.
|
| FrameAnimation { | ||
| running: root.opened && !root.layoutSettled && root.renderedFrames < 2 | ||
| onTriggered: { | ||
| root.renderedFrames += 1 | ||
| root.maybeReveal() |
There was a problem hiding this comment.
Frames count before previews finish
renderedFrames starts when the picker opens and stops at two, even while previews are decoding. If decoding takes more than two frames but less than 400 ms, the last previewSettled change can reveal the card on the next tick without the promised two frames with completed previews. A new request while the picker stays open also keeps the old count.
Start counting after all previews settle, and reset the count for each new request or readiness change. Add a test where decoding finishes after the initial two frames.
What
The background/theme image picker now appears instantly, in one complete frame, directly over the desktop:
image-picker.scrimtheme tokens with it.Testing
test/shell.d/image-picker-test.shpasses, including new guards that run the reveal logic itself against mocked delegates (settled, unsettled, no cards, stalled-preview fallback, closed).color-reference-test,theme-templates-test, andoverlay-window-testpass.