Skip to content

Player sub-menus 2/5: Style page with Size/Position/Color pickers - #345

Merged
GLinnik21 merged 1 commit into
mainfrom
feat/player-submenus-2-on-forms
Oct 1, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
feat/player-submenus-2-on-forms

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

What changed

Player sub-menus 2/5. Builds on #339's TrackRow form and supersedes #342 (which carried its own TrackRowId; #342 is left open for the owner to close).

  • The Subtitles tab's Color row is now a Style row that pushes a page stack: Style -> Size / Position / Color pickers. TrackPage / StyleField live in ui/track_menu.rs; each page keeps a saved return id and scroll, a title band (click pops), LEFT/BACK pop, OK/RIGHT push. Timing has no chevron.
  • FormTable::refresh_with(form, prefer, fallback) so a live refresh keeps focus by id.
  • Optimistic persistence: route::select_subtitle_size/position publish the live atomic first, then a persist-only storage write (never republished). Settings' Size/Position pickers use the same path; OK on the checked row is a no-op only if the stored value also matches (retry after a failed write), with a failure line and picker rebuild on live drift.
  • Locks: Style follows Timing's availability (dim and noted only for the app's own burn); image and ASS subtitles dim Size and Position with separate notes, Color stays live.
  • SubSig: a sub-page refreshes in place and pops to root only when its availability changes.
  • Replay canon now carries the tab, page path, selected key and saved return ids. SCREEN_SHAPES_PIN moved; the three replay fixtures were observed REFUSED, then re-recorded with plxnative-rec rerecord and replayed SAME in both modes (three runs of tests/replay_fixtures.py, plus focusfp.sh --replay/--targets/--resolve, zero difference counters). README note added.
  • theme::layout::PLAYER_MENU_MIN_W (440) with TableView::min_panel_w, set by Tracks and More.
  • Five new strings in en/es/be with fit tests.

Tests

All of PR 2's tests were ported onto TrackRow (push/pop focus identity, scroll restore, signature in-place vs pop, publish-before-persist, never-republish, failure, Settings retry, locks per renderer, title click pops, canon includes page path, distinct keys). #339's tests (e.g. reordering_the_rows_moves_no_focus_key) are untouched.

Verified on the committed tree, rebased on a38d880:

cargo +nightly test --lib
test result: ok. 5335 passed; 0 failed; 7 ignored; 0 measured; 0 filtered out
cargo +nightly check --lib --no-default-features   -> Finished
make check
test result: ok. 5335 passed; 0 failed; 7 ignored; 0 measured; 0 filtered out
test result: ok. 5409 passed; 0 failed; 7 ignored; 0 measured; 0 filtered out
test result: ok. 102 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
make (ARM)  -> rc=0

Simulator captures (mock server, generated media with SRT and ASS tracks) were taken for the Subtitles root, Style, Size, Position, Color, the locked-ASS Style page and More. Not verified on the TV.

🤖 Generated with Claude Code

…the track-menu form

The Subtitles tab's Color row becomes a Style row that pushes a page stack on #339's
`TrackRow` form: Style -> Size / Position / Color pickers, each a drill-in showing its
current value, with a title band (click pops), a saved return id and scroll per page,
and `FormTable::refresh_with` so a live refresh keeps focus by id.

- Size and Position persist optimistically (`route::select_subtitle_size/position`
  publish the live atomic, then a persist-only storage write; never republished);
  Settings' pickers use the same path and a retry on the checked row is only a no-op
  when the stored value matches too.
- Style follows Timing's availability; image and ASS subtitles dim Size and Position
  with their own notes while Color stays live.
- `SubSig` rebuilds a sub-page in place and pops to root only when its availability
  changes.
- The player overlay's replay canon carries the tab, page path and saved return ids:
  `SCREEN_SHAPES_PIN` moves and the three replay fixtures are re-recorded.
- `PLAYER_MENU_MIN_W` / `TableView::min_panel_w` give Tracks and More a 440 floor.
- Five new strings in en/es/be with fit tests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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