Skip to content

RC 2 polish: Yellow reaches SRT/ASS tracks, timed skip prompts follow the countdown, hero title gap - #1345

Merged
GLinnik21 merged 15 commits into
mainfrom
fix-yellow-hero-polish
Nov 12, 2026
Merged

GLinnik21 merged 15 commits into
mainfrom
fix-yellow-hero-polish

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

What

The second release candidate's fixes, from the owner's on-TV pass over the first candidate and #1342's Yellow subtitles.

Subtitle colour (Yellow) now reaches the tracks it ignored

  • A SubRip <font color="#ffffff"> tag no longer beats the pick: an explicit white is the default ink, so Yellow shows.
  • An authored ASS/SSA track (including the embedded ASS track many "SRT" files carry in Plex) takes the pick: every style whose primary (and secondary) colour is pure white is rewritten, and any other colour stays as authored. This reverses Subtitle color: a Yellow tone and a Settings row beside Size and Position #1342's "ASS is never recoloured" for white-primary styles. Known cost: white-drawn signs and typesetting take the colour too.
  • Colours are read the way libass reads them (&h/0x hex, decimal otherwise; $00FFFFFF is not white). Edits are spliced in offset order, so a reordered Format: line cannot panic.
  • The authored recolour is built on the existing restyle worker, never under the frame-thread lock; the old look stays up until the new one publishes.
  • The Color picker dims a colour the active subtitle cannot take (picture subtitles: only grays) and says why, with three notes (image, styled, fixed). The fact is a value the player publishes on the session (PlayerReadout::subtitle_takes_colour), not a registry read from appkit; ci/check-deps.sh's globals rule now also names the four reader spellings, so it only tightens.

Timed skip prompts (Skip intro / Next episode)

  • The filled button is always the action the countdown performs; Automatic shows an unfilled Watch (cancel) beside the filled Skip pair; initial focus starts on the filled action for both modes.
  • Auto-skip rows no longer appear and disappear on the Settings screen: marker-access grants are settled and stand through a TTL refresh or a failed re-read.

Home hero

  • A title set in type (no logo art) ends its painted box on the foot like a logo, so the gap to the metadata line follows one rule. The three buttons' spacing was measured equal in layout and is left alone.

Prose: the docs, comments, release note and audit statements these changes made false (docs/ass-subtitles.md, playback-settings.md, player-submenus.md, sans-io.md, sans-io-guide.md, release-notes/v0.10.0.md, release-audits/v0.10.0.md, and others).

Strings for 12 locales are machine-drafted (Belarusian checked on skarnik.by; the French and Belarusian notes want a native read).

Verification

Crate suites: plx_media 2010 passed, plx_appkit 952, plx_screens 2137, application hostsim 1526, plx_media hostsim 2290; the real-libass native_yellow tests (4, ignored by default) pass; the two-line fit gate passes for every new string. make check-nodef, ci/check-deps.sh, ci/check-ledger-ratchet.py (no ledger count rose), ci/check-localization.py and ci/check-module-layers.py are green. The reordered-column and hostile-header tests were written first and failed against the old splice (panic at ass_ink.rs:143).

Independent pr-reviewer pass on the combined diff: round 1 and round 2 findings fixed (3 major, 3 minor in round 2).

Not verified: yellow on the owner's embedded-ASS file, the dimmed-rung look, the text-title hero and the skip prompts on the TV in a release build; managed-profile Plex Pass (never seen on a real managed account); make check-replay (the simulator cannot start in a lane; CI gates it); full make check (CI runs it). Yellow in HDR is unchecked.

🤖 Generated with Claude Code

GLinnik21 and others added 15 commits November 12, 2026 02:09
… Yellow pick

A SubRip cue wrapped in <font color="#ffffff"> became {\c&HFFFFFF&}, an
override that wins over the synthesized style's primary colour, so a viewer's
Yellow pick drew such files (very common downloads) white. Plain white is the
file's default ink spelled out: dropped, unless another colour is open around
it. Any other colour is still the cue's own.

Tests: converter rows, a real-libass pixel test of the spelled-out white cue,
and the embedded SubRip track through the real store and renderer, opened under
Yellow and switched live.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d re-read

The Settings > Playback skip rows and the player's automatic offer read the
viewer's marker grants only while the last answer was FRESH, so every five
minutes (and for every re-read in flight) the grants fell to none: the rows
vanished and came back, and an automatic offer turned manual and back.
The TTL now only decides when to ask again. The grants are those of the last
successful answer for the seat; a failure keeps them, a landed answer replaces
them, another seat clears them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…go, so the gap to the metadata line is one rule

A hero titled in type stood its last baseline on the title band's foot, so the descenders hung
into the HOME_TITLE_GAP and the title read almost on the metadata line, while a clearLogo's box
ended on the foot with even air. The Hero rung now lifts type by the face's descent
(LogoRung::descent_share, shared by Home, Detail and the catalog); the compact strip and the deck
card keep their baseline. Tests: the painted box and the drawn run in plx_ui, and the
title->metadata->actions gaps for art, type and a wrapped title in the Home ladder.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…forms, one initial focus for both

The Automatic intro prompt was one FILLED pill reading "Watch intro" whose OK cancelled, while the clock at
its end performed the opposite (a skip); the credits pair already had Watch Credits + a filled Next Episode.
Both timed prompts now follow one rule: the filled button is what the five-second clock performs, OK on it
performs it now, the unfilled Watch button to its left (item 0) cancels, and focus starts on the filled one.
The Automatic skip face is laid out as Up Next's pair (up_next::layout_at) through the compiled Standin, hit
map, lints and the shared Button; no new strings (Skip Intro/Credits and Watch Intro/Credits already exist).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…, so the pick recolours it

A converted SubRip reaches the app as an embedded ASS track, which took the
authored-ASS path that #1342 never recoloured, so Yellow did nothing for it.
`player::ass_ink` rewrites the PrimaryColour of every style whose primary is
exactly pure white (&H00FFFFFF, alpha 0, any spelling, SSA decimal included) to
the pick through SubtitleTone::text_rgb8, on the header that reaches libass; the
file's own bytes stay the reopen identity. SecondaryColour (karaoke) is
recoloured only when it is itself pure white. A style with any other primary,
inline overrides (explicit white too), outlines and shadows are left alone, and
the grays never rewrite a header (they stay a draw-time tint). A colour change
restyles the live track once in place (ass::restyles). Embedded and sidecar
scripts both take it; picture subtitles never do.

This reverses the #1342 line "ASS is never recoloured" for white-primary
styles. Known cost: signs and typesetting drawn in white take the colour too.

Notes: the Style-page styled note, the Settings copy and the docs say so, in all
twelve locales, inside the two-line fit gate.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nnot take, and says why

Yellow checked while the caption keeps its own colours was a lie: an image
subtitle, or an ASS/SSA script with no pure-white-primary style, never takes it.
One media fact, `player::subtitle_takes_colour(codec)` (picture: no; text: yes;
ASS/SSA: the header that reaches libass has a white-primary style, judged on the
file's own bytes and cached at open, from the selected sidecar else the embedded
track), is read into the Subtitles menu's SubSig. Where it is false the Color
picker shows the Yellow rung as a disabled row (the grays stay live, they tint
any renderer) with the reason as the page's note, and the Style page's styled
note names which case it is. A stored Yellow pick stays the checked rung and the
saved preference; the menu never rewrites it. The fact refreshes the open page in
place when an ASS header arrives after it opened.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…o the first

The note now describes the Home hero's inside-the-page pager, identity line for every title, arriving-page tint and steadier wash, the Favorite libraries and Player HUD previews, Estimated end time offered only when the HUD declares it, the managed profile's use of its administrator's Plex Pass, timed skip prompts, the loading sign after a committed seek, the Library focus fix, audio and Play Version fixes, and the Yellow subtitle color with its known cost. The audit records what was and was not seen on a television, the Library symptoms not confirmed there, and the new plex.tv read.

Action-required check re-run for the new read (GET of the Home administrator's /api/v2/user and /api/v2/features under the stored account token, plex.tv only): hits were test fixtures, tooling that uses /tmp as test data, a colour-table identifier and the one production read; no new file, permission, listener, host or out-of-directory path. Judged not to owe an action-required section; disclosed in the note's Changed section and the audit, for the owner to confirm.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nt and hero-title changes made false

Ten places the doc-claim audit found: the player-submenus and parity-gaps Color wording (Yellow reaches text and the white-primary styles of ASS, never a picture, and the picker dims where it cannot), the marker-grant lifetime (settled grants stand through a TTL refresh and a failed re-read), no Automatic skip prompt has a standalone Watch control, the SubtitleTone, style_form, ControlSlot and media CLAUDE.md comments, and the hero title's foot rule (the painted box ends on the foot on the Hero rung).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… libass does

A Format line may list SecondaryColour before PrimaryColour (libass honours any
column order); recolour pushed primary then secondary and sliced backwards when
both were white, a panic in the demux, frame and sidecar threads. Edits are now
sorted and an overlapping one is skipped. is_white follows parse_int_header:
&h and 0x are hex, anything else decimal, modulo 2**32; a $ prefix is not read by
libass (it is 0) and no longer counts as white. Tests: reordered columns, hostile
headers (truncated, CRLF, duplicate Format, missing columns, byte scramble).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…r the frame-thread lock

ass_source_styled scanned, copied and compared the whole file (up to
SIDECAR_MAX_BYTES) on the frame thread under the sidecar lock when the colour
pick moved. It now copies one Arc and starts a worker (start_recolour, published
by publish_recolour), exactly as the converted-file restyle does; the old look
stays up until the worker publishes. Test: the call that notices the pick returns
the held source itself. ass_ink's spelling note in docs/ass-subtitles.md follows
libass.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… registry read

sub_sig_for called plx_media::player::subtitle_takes_colour(codec) every frame
from a machine (appkit), which read sidecar::selected/takes_colour and
ass_source::takes_colour behind free functions. The media side now delivers the
header's half once a tick (player::deliver_subtitle_ink, from the app's
playback_tick, whichever backend plays) as ReadoutEvent::SubtitleInk, and
subtitle_takes_colour(ps, codec) reads it from the readout. The menu tests set
the value on the session and no longer drive the ass_source/sidecar registries.
check-deps' globals rule names the four registry readers (it tightens: no
machine holds a site), and sans-io.md / sans-io-guide.md list them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eeps one term, be and pl name the player's menu again

fr 'blanc au choix' and it 'bianco a scelta' read as 'white, of your choice'; they now
say the white follows the colour. ru keeps 'с оформлением' (the term the other styled
strings use). be and pl restore 'the player's' before the Subtitles menu in the Color
copy. be words checked on skarnik.by (плэер, яркасць).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…y glob or brace, and aliased; two comments corrected

The globals rule named sidecar::takes_colour/selected and ass_source::takes_colour/selected
only qualified. It now also catches a bare call after a use (single, braced or glob)
and refuses a use ... as rename of sidecar or ass_source, like tape::active; proven with
a temporary appkit probe per spelling (removed), ledger counts unchanged (globals 79).
ass_source's embedded recolour comment states the real bound (once per pick change, at
most 1 MiB scan and copy under the store lock, why it stays inline), and
select_loaded_for_test no longer says nothing restyles an authored script on a worker.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 0686bf7 into main Nov 12, 2026
23 checks passed
@GLinnik21
GLinnik21 deleted the fix-yellow-hero-polish branch November 12, 2026 02:51
tiper added a commit to tiper/fin-native that referenced this pull request Nov 12, 2026
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