Skip to content

Player sub-menus 3/5: languages and image-subtitle badges - #346

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

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

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Part 3 of 5 of the player sub-menus. Follows #345 (squash-merged as 73aa443) and is based on main.

What changed

  • Subtitle languages outside the viewer's own collapse into an Other languages row that opens an A-Z page. A language with one track is a pick row; with several it is a nav row ("N tracks") that opens a per-language page.
  • Image-based subtitles (PGS, VobSub, DVB) carry a codec badge; text subtitles carry none.
  • Re-implemented on the keyed TrackRow / TrackPage forms: focus lands on the active track, and opens Other when the active track sits behind it. Pop restores the opener. A language page that shrinks to one track stays open. A page whose stream vanishes pops to the root (pages_hold, stream identity).
  • Committing from a language page does not keep the menu open.
  • Harness: sub_track_for_target / commit_sub_track through the overlay's resolve_menupick_track / pick_sub_track and dev/scenarios.rs.
  • TITLE_GAP is now 12.0. The unused widgets.tracks.language_count locale key is removed (en/es/be). docs/player-submenus.md updated.

Replay

The screen shape string is unchanged, so SCREEN_SHAPES_PIN was not bumped and the three fixtures replay untouched; no re-record was needed.

Verification

  • cargo +nightly test --lib: test result: ok. 5357 passed; 0 failed; 7 ignored
  • cargo +nightly check --lib --no-default-features: clean
  • make check: test result: ok. 5431 passed; 0 failed; 7 ignored (plus the rest of the gate, all green)
  • make (ARM): builds
  • tests/replay_fixtures.py: 3 fixtures, 6 replays, 0 failures; tests/focusfp.sh --replay: 3 passed, 0 failed, 9 skipped of 12
  • Not verified on the television; simulator captures with a mock PMS and generated media only.

🤖 Generated with Claude Code

… badge

Subtitle languages outside the viewer's own collapse into an "Other
languages" row that opens an A-Z page; a language with one track is a
pick row, with several a nav row ("N tracks") opening a per-language
page. Image-based subtitles (PGS, VobSub, DVB) carry a codec badge.

Built on the keyed TrackRow / TrackPage forms: focus lands on the active
track (opening Other when it sits behind it), pop restores the opener,
a language page that shrinks to one track stays open, and a page whose
stream vanishes pops to the root. Committing from a language page does
not keep the menu open. The harness resolves and commits sub-menu
targets through the same path. Drops the language_count locale key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 7d0489b into main Oct 1, 2026
5 checks passed
@GLinnik21
GLinnik21 deleted the feat/player-submenus-3-on-forms branch October 1, 2026 05:14
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