Repository navigation
Player sub-menus 1/5: table groundwork — wrapped notes, title band, nested clips, form Nav/choice/disabled - #335
Merged
Merged
Conversation
… header band A Row::note wraps to its label column and its row height follows the wrapped lines (TableView::fit_notes); fit_report judges notes. Every section after the first now gets the gap and hairline whether or not it has a header. HDR_H 58 -> 40 so a header reads as belonging to its rows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pes, form Nav/Choice/disabled and open/refresh/restore TableView::set_title draws a "< TITLE" band followed by a section-boundary gap, counted by measured_height/measured_width and graded by fit_report (FitRole::Title). ClipScope now intersects with the enclosing scope and is openable from a bare Painter, and TableView::draw uses it instead of setting and clearing the GL scissor. FormTable gains open/refresh/restore beside set, Nav rows take their chevron from their kind, Choice rows derive checked from a predicate, and a disabled item is dim, focusable and never activates. TrackMenuState::update takes the Measure so a rebuilt note's panel height is right on the same update. docs/player-submenus.md records the design. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…overy clip, title re-snap and rect - FormSection::disabled is a no-op after a skipped item_if/item_keyed_if, so it cannot dim the preceding row. - TableView: an empty section emits no divider and content_h ends at the last row. - ClipScope forwards to the backdrop discovery clip like Painter::clip. - set_title re-snaps the pill when the band appears or goes; add title_rect; the title and its hairline are never dimmed by section 0. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 1 of 5 for drill-in sub-menus in the player's track menu. The design record is
docs/player-submenus.md.This PR adds the table and form groundwork only. There are no new pages yet; PR 2 adds the page stack and the Style pickers.
What changes
Row::note) at the row-label column, and the row grows with the line count. The line count is computed from the frame width each time the page is rebuilt, including the live rebuild inTrackMenuState::update, which now takes theMeasure. The panel height is never a frame stale. The text-fit gate now covers notes too.HDR_H58 → 40, so a header sits right on its first row.TableView::set_titledraws "‹ TITLE", spaced like a section boundary. It is covered by the fit gate and hastitle_rectfor the pointer target that PR 2 adds. A dimmed section never dims the title.ClipScope::openintersects with the enclosing scope and restores it afterwards.TableView::drawuses a clip scope, which also feeds backdrop discovery. Painting and hit-testing still share the one clip stack.ui/form.rs:choice(…)sets the checkmark from a predicate.disabled(…)makes a row dim, still focusable, and inert on OK and RIGHT. It does nothing after a skippeditem_if.FormTablegainsopen,refreshandrestore, so a live data refresh keeps scroll and selection by id.Visible side effects (intended)
TableViewmenu gets 18 px shorter per header.HDR_H.Verification
All four gates were run on the committed tree:
cargo +nightly test --lib:test result: ok. 5294 passed; 0 failed; 7 ignored--no-default-featurescheck: cleanmake check: exit 0 (5294, 5368 and 102 passed, 0 failed)make(ARM cross-build): exit 0New tests cover wrapped notes and the live-rebuild height, the title band (its height, fit, rect under scroll, re-snap, and never being dimmed), trailing empty sections, nested and discovery clip scopes, and the form Nav, choice, disabled, open, refresh and restore behaviour.
🤖 Generated with Claude Code