S018: thumbnails in the folder views, previews toggle and settings
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
parent
270e828db4
commit
eba5db311b
1 changed files with 1033 additions and 76 deletions
|
|
@ -178,6 +178,12 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
|
|||
- Not done: no pkexec/polkit run (D-009, S036); "Retry as administrator" not clicked in a live window; `.directory` save not yet wired to `write_file` (S015's files; API sent to S015); `Bridge::elevation` has `allow(dead_code)` until then.
|
||||
- Later: remove that allow once S015 calls it; elevated trash goes to root's trash (left as is: Elevation passes trash through the helper → Unsupported).
|
||||
|
||||
## S018 — Thumbnails in the views
|
||||
- Done: `thumbs_bridge.rs` (`Thumbs`: shared `tunal-thumbs` pool built from settings, rebuilt when max size / video frame / remote change; PNG decode off the UI thread; `on_network_fs` from mountinfo). `FolderModel` owns `folder/previews.rs` (LRU of 200 `slint::Image`, requests in flight, files without a thumbnail). Views report `viewport-changed(top, height, row, cell)` (init, scroll, resize, cell size); the model asks for rows in view (Normal priority) + a few beyond (Low), cancels the rest; details use 128 px, grid 256 px. `DetailRow.thumb/has-thumb`; `Preview` (components/thumb.slint) fades glyph out and a rounded tile in on arrival (cached ones appear at once). Grid cells grow to a 80 px slot with previews. Toolbar toggle (per pane, per folder via `.directory` `previews`), default `previews` in `settings.toml`; Settings → Previews page: on/off, video frame (percent/seconds + stepper), largest image (MiB), network drives.
|
||||
- Verified: build; clippy -D warnings on `tunal`/`tunal-thumbs` (`--no-deps`; only S026's `places.rs` expectation and `tunal-devices` lint fail); fmt; literal grep empty; screenshots (reduced motion) of image/SVG/MP3 cover/MP4/plain mp3/broken png folder in details + grid, light + dark, previews off (settings.toml), Settings Previews page.
|
||||
- Not done: arrival fade, scroll cancel and live toggle not watched (single frames); a link badge hides while a thumbnail shows; video frame change doesn't redo existing thumbnails; plain `workspace` clippy red until S026 fixes `tunal-devices`. Screenshots now draw once, run `Shell::settle_thumbs`, then draw again.
|
||||
- Later: preview panel; thumbnails for PDFs; remote locations (SFTP/devices) need a read path in the pool.
|
||||
|
||||
## Later
|
||||
- (orchestrator) Breadcrumb: a long path is hard-clipped at the bar's left edge with no elision mark, and the root crumb elides at 960 px — for S034.
|
||||
-
|
||||
|
|
|
|||
Loading…
Reference in a new issue