S023: quick player bar with waveform seek bar
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
b36fea1436
commit
26073c4e7b
1 changed files with 960 additions and 11 deletions
|
|
@ -218,6 +218,15 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
|
|||
- Not done: password and keyboard-interactive paths (local sshd had keys only), agent auth, passphrase keys, ProxyJump (reported unsupported); `posix-rename` not used (library hides offered extensions; rename pre-checks the target instead, so overwriting needs delete first); non-UTF-8 remote paths give `Unsupported`; `NotEmpty` not reported (server says failure); russh keeps its own copy of the password string, not zeroized. Real host check is S036.
|
||||
- Later: posix-rename via the raw session; watch by polling.
|
||||
|
||||
## S023 — Quick player UI
|
||||
- Done: `Action::Play` ("play", Space, context menu File + Several items): plays the first selected audio file; the folder's shown audio files are the queue. Space reaches it through the folder view's type-to-filter path (only with an empty filter), so text fields never trigger it. `FolderModel::shown_files()`.
|
||||
- `player_bridge.rs` `PlayerUi` (owned by Actions): lazy `tunal_player::Player`, events back via a thread-local Weak; tags + cover read off-thread; waveform 600 buckets, downsampled to the bar count the seek bar reports (`player-bar-count`, re-done on resize); errors as toasts; ended → next file when Settings › General "Play the next track" (`player_next`, default on, D-037).
|
||||
- `ui/shell/player-bar.slint`: card above the status bar, rises on open (height, medium1, emphasized-decelerate, Motion.time); cookie9 cover (picture or music glyph), title/artist, PlayButton (primary cookie9 ↔ circle morph, pause/play glyph), SeekBar (bars, played tint, hover line, press-drag scrub, release seeks, ←/→ ±5 s with focus ring), time, mute + volume track, close. No timers: position arrives only while playing.
|
||||
- Screenshot hook `TUNAL_PLAY=<file>` (bar a third in, no audio output).
|
||||
- Verified: tunal build, clippy -D warnings, fmt --check, literal grep empty; screenshots light + dark on a generated FLAC with cover.
|
||||
- Not done: no live window (sound, slide, morph, scrub, Space, next track unchecked live); cover is drawn square inside the cookie (Shape's picture behaviour), not clipped to it.
|
||||
- Later: clip pictures to the shape; remember volume; previous/next buttons.
|
||||
|
||||
## 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