From 92d9e29f42c32a52a3ed1fda6913d3ca6eb5289b Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 19 Nov 2026 07:24:54 -0600 Subject: [PATCH] player bar: wavy seek bar, fixed-width time, narrow layout; play video sound The seek bar is a wavy progress line: the played part waves (travelling only while playing, flat when paused, still under reduced motion), then a gap, a pill handle at the playhead and the flat rest with a stop dot. Drag shows the position live and seeks on release. The time label keeps the width of its widest text; narrow, the volume slider, half the title, the cover and artist and the mute button go in turn, so the bar fits down to the 720 px window. Play is offered for audio and video files (by MIME type), Edit tags for every format lofty writes; a tag write on the playing file closes it and resumes playback where it was. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- crates/tunal/src/actions.rs | 21 ++- crates/tunal/src/player_bridge.rs | 220 +++++++++++++++---------- crates/tunal/src/tags_bridge.rs | 29 +++- crates/tunal/ui/app.slint | 11 +- crates/tunal/ui/shell/player-bar.slint | 177 +++++++++++++++----- crates/tunal/ui/theme.slint | 7 + 7 files changed, 306 insertions(+), 161 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index bacd590..18bf8bd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -93,7 +93,7 @@ Never modify: `PROMPT.md` (the user's brief), the user's other projects under `~ | `TUNAL_DRAG=x1,y1,x2,y2[,hold] TUNAL_REDUCED_MOTION=1 cargo run -p tunal -- --screenshot --size 1200x760` (`XDG_CONFIG_HOME=`) | drags between window points and drops (drop menu) or holds (glow + drag image) before the frame | S014 | | `Xvfb :97 &` then `env -u WAYLAND_DISPLAY DISPLAY=:97 target/debug/tunal &` and `DISPLAY=:97 target/debug/examples/xdnd_probe x1 y1 x2 y2` (or `in x y `) | X11 native DnD: fake XTEST drag out of the window onto a probe target, or a probe source dropping into the app; Xvfb only | S031 | | `TUNAL_APPEARANCE=1 XDG_CONFIG_HOME= cargo run -p tunal -- --screenshot --size 1000x760` | folder appearance dialog for `` (theme icons looked up at once); `cargo run -p tunal-dirmeta --example roundtrip -- ` sets `Icon` in `/.directory` and prints the old values | S015 | -| `TUNAL_PLAY=