icons: theme file icons with previews, sidebar icons and folders dropped into Places

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-25 01:01:23 -06:00
commit 4acabfc76a

View file

@ -292,5 +292,10 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
- Verified: clippy on tunal + tunal-theme, fmt, release build, two PNGs (settings page; Opus file in the playing bar with plain icons and a green palette).
- Not done: no test run (user: save credits); Pick… not tried live.
## Theme file icons, sidebar icons and Places drops (user request)
- Done: `file_icons.rs` (shared MIME globs + first bytes → icon theme picture; user folders; `.desktop` icons), shown while previews are on; off = plain glyphs, no `.directory` icon (its name stays). Places and Bookmarks: drop folders on the header or between rows, move entries within and across the two by drag, Change icon… (`icon_picker.rs`, `ui/components/icon-picker.slint` shared with folder appearance). `places.toml` gains `places`, `icon`, `standard`.
- Verified: clippy on tunal, fmt, release build; PNGs (previews on/off), drags (folder → Places, bookmark → Places), icon dialog saved under Xvfb.
- Not done: no test run (user: save credits); MIME globs with wildcards in the middle are ignored.
## Later
-