Skip to content

Title fallback, filename display, meter contrast, queue reveal, shuffle icon#24

Merged
swilcox merged 2 commits into
mainfrom
gui-fixes
Jul 17, 2026
Merged

Title fallback, filename display, meter contrast, queue reveal, shuffle icon#24
swilcox merged 2 commits into
mainfrom
gui-fixes

Conversation

@swilcox

@swilcox swilcox commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Five fixes from real-world use:

  1. Untitled modules show their file name (no path) — implemented in rtrax-core::audio::load_module, so the TUI, GUI, window title, and OS Now Playing all inherit the fallback. Unit-tested.
  2. File name displayed in the GUI header subtitle line: format · artist · song.xm.
  3. Meter bar contrast: bars are now three-zone gradients (meter_low/meter_mid/meter_high across the width, exactly like the TUI meters) instead of a single meter_low fill, and the track is recessed toward the background. Fixes muted custom themes — e.g. seoul's dark-green meter_low (#455f54) against brown track (#594743) was nearly invisible; now the mid/high zones (ginkgo yellow, dancheong red) carry the contrast. Peak-hold tick changed to fg so it reads in every palette.
  4. Opening the queue reveals the playing track: one-shot scroll placing it ~1/3 from the top of the viewport; egui's scroll clamping naturally degrades this to "just visible" near the ends of the list.
  5. Shuffle is an icon (crossing arrows with arrowheads) in the queue header, consistent with the other icon controls, lit in the theme fill color when active.

Tested: fmt/clippy/tests green (new core test for the title fallback); smoke-launched with the seoul custom theme and a multi-file queue.

swilcox added 2 commits July 16, 2026 21:37
…icon

- core: untitled modules display their file name (no path) instead of a
  blank header — flows to both frontends, window title, and Now Playing
- GUI header subtitle shows the current file name after format · artist
- GUI meter bars are three-zone gradients (meter_low/mid/high) like the
  TUI, with the track recessed toward the background; fixes themes whose
  meter_low sits close to the track color (e.g. seoul's Namsan Green vs
  Palace Brown). Peak-hold tick is now fg for universal contrast
- opening the queue scrolls the playing track to ~1/3 from the top
  (scroll clamping degrades it to "just visible" near list ends)
- queue's shuffle toggle is a crossing-arrows icon, matching the other
  icon controls
Only the outer ends of a bar are rounded; interior zone boundaries butt
together so the fill reads as one continuous bar.
@swilcox
swilcox merged commit 861ad88 into main Jul 17, 2026
7 checks passed
@swilcox
swilcox deleted the gui-fixes branch July 17, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant