Repository navigation
Top bar: the glass is never dropped for the strip's width - #1165
Merged
Merged
Conversation
tab_glass_on(track_w) fell to the flat capsule once the track passed GLASS_TRACK_MAX (~672 px). A Belarusian strip (Галоўная, Фільмы, Серыялы plus the Watchlist and Search icon pills) is 679 px, so the bar lost its glass. Width no longer decides the material: only the flat_tabs_armed() dev A/B does. The track grows to TAB_VIEW_MAX and then scrolls with the existing mechanism. The "chip capsule and track never touch" invariant moves to the chip. chip_name_budget(track_w) is the one named function that turns the track width into a name budget (min(CHIP_NAME_MAX, room), BAND_AIR kept); profile_chip_text takes it, and with no room the chip shows no name and its capsule stays the closed circle, hit test included. ChromeSnapshot::refresh_with_profile re-elides the name when the strip widths change, in the owner, with no draw-time measurement. Deleted: GLASS_TRACK_MAX, GLASS_TRACK_BUDGET_MAX, GLASS_TRACK_TOUCH_MAX, BAND_REGION_H, BAND_REGION_BUDGET, BAND_REGION_X0 and the band_region test helper. Tests: the Belarusian five-pill regression (red first: "a 679 px track dropped to the flat capsule"), the width-pinning tests replaced, a sweep of the chip/track clearance over every track width, and a ChromeSnapshot test for the re-elision. Prose in ui/CLAUDE.md, docs/liquid-glass.md, docs/glass-hardware-budget.md and the gfx doc comments follows. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…pling footprints `surface_with` sent a glass out of the shared band when its sampling footprint (the rect grown by BLUR_REACH) touched an earlier glass's rect. The top bar's chip ends at x=172, so its footprint reaches 240, and any centred track of 1432 px or more starts inside that reach although the two keep BAND_AIR (16 px) between them. At a 1544 px strip that made two glass source jobs and a second page pass into the blur source: Home's hero-pong missed 69 to 107 refreshes in 60 cycles against 11 to 14 at narrower widths. The test is now the drawn rect against the earlier rects grown by 4 px, so only glass whose bodies overlap gets its own band; neighbours sample the page, as docs/liquid-glass.md says. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Measured from a TV capture: track 622..1298, pills 168 / 144 / 164 and two 60 px marks, so the bold labels are 132 / 108 / 128 px. The strip was 4 px past the retired cap, not 7, and a 676 px track leaves the chip 396 px of name room, not 394. The test pins the measured pills and says the strip is the widest of the shipped locales by the shipped font's advances. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tab_glass_on() no longer takes the track's width, so the closure that returned it beside the widths had nothing left to read from its geometry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Belarusian five-pill test asserted tab_glass_on(), which takes no width, so its glass half passed for any strip. It now DRAWS a 676 px strip through the helper the scrolling-strip test uses (factored out as drawn_strip) and reads the material the draw published on the band. Seen red with a temporary width gate in StripRender::draw (flat past 672 px); the gate is not committed. Also drop the claim that the no-name chip test covers the hit-tested rect: it asserts chip_cap only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The band keeps its glass at any width and splits only on overlapping drawn rects, so: the glass guide says the chip and the track are one band that needs no sequencing; the hardware-budget note carries the measured cost of the widest bar; BLUR_MARGIN, the hold hint test, chip_capsule, the disc label and chip_name_budget docs no longer describe a priced band budget or a fixed chip budget; and the chrome comments drop the language switch, which cannot happen while the app runs. tab_glass_on is the flattabs experiment and nothing else, so the comments that had it go false in a blur source pass or under a popover now say what the code does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
chip_name_budget's doc now states where the budget bites (past an 828 px track) and where it reaches 0 (past 1300 px), and that one more pill wider than 136 px on today's widest strip is already in that range. Co-Authored-By: Claude Opus 5.5 <[email protected]>
chip_name_budget and profile_chip_text clamp the profile name's pixel width to CHIP_NAME_MAX; the name is elided and nothing is dropped from any list, so both are not-a-list in ci/list-caps.ini. Co-Authored-By: Claude Opus 5.5 <[email protected]>
c0a26c4 took 676 from a capture and corrected 679 to it. That was wrong: 676 is the scrim inside the capsule's 1 px rims, not the track. The evidence, from the television on 2026-10-31: - the app's own layout rect is 620,54,679,76 on two libraries and two builds, on every line of the ground log; - a capture measured on the capsule's exact midline shows a rim at x=620-621 and x=1298, so the scrim interior 622..1297 is 676 px and the track is 679; - the shipped font's advances give 132 / 108 / 131 px of bold BODY label (pills 168 / 144 / 167, plus two 60 px marks), a 679 px track again. The third label is 131 px, not 128; the first pill's 168 px was confirmed on the capture. Russian, the next widest locale, is 666 px by the same advances, 13 px narrower. So the strip was 7 px past the retired 672 cap, not 4, and the chip is left 394.5 px of name room, not 396. One more pill wider than 133 px (not 136) on this strip takes the budget under CHIP_NAME_MAX. The measured legs in the hardware budget were taken on this same strip and now read 679 px. The host cannot draw 679: a host pill is 14 px a byte plus 36, a mark 60 and the air 16, all even, so every strip it draws is an even width. The test now draws the television's shape (three labels, Watchlist and Search marks) at 686 px, pins that width, and asserts it is past the retired cap. Putting a `tab_glass_on() && track.w <= 672.0` gate back turns it red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Oct 31, 2026
GLinnik21
added a commit
that referenced
this pull request
Oct 31, 2026
Bardioc1977
added a commit
to Bardioc1977/plx-native
that referenced
this pull request
Oct 31, 2026
Conflicts and how each was resolved: - rust-modules/ui/src/widgets.rs: main's plxnative#1165 removed the glass track budget (GLASS_TRACK_MAX and its constants; the glass is never dropped for the strip's width) and added chip_name_budget. Took main's block whole; this branch's GLASS_TRACK_MAX doc paragraph (the per-language "who keeps the glass" figures) described a rule that no longer exists and is gone. The pill-title fit (fit_title_face, title_budget, TAB_TITLE_*) is kept and re-based on the new chip geometry: a closed chip_cap(1.0, 0) is now the circle, so the room is the new shared chip_name_room(track_w) (chip_name_budget is its clamp) and TAB_TITLE_ROOM is 270 px of profile name, TAB_VIEW_FOR_ROOM 912. - rust-modules/ui/src/widgets_glass_budget_tests.rs: took main's tests (drawn_strip, the Belarusian strip keeps the glass, any strip keeps the material). Dropped the tests of the removed budget (the two-type track table and per-language glass thresholds, the translated Other Videos pill being flat, the library title keeping the glass) and the Polish rows with them; added the_three_type_strip_keeps_the_glass_in_every_ language, and re-expressed the chip-room test through chip_name_room. widgets_tab_title_tests.rs: figures re-derived (hu 217, ru 210, be 197, nl 240; a 197 px title is whole in every language). - tests/mock_pms.py: kept both sides: --other-videos / -hidden / -title / -sections and the section_titles patch, and main's --band-fixture and its per-type sort lists. The band fixture's generated set is taken before the clips are added, so they keep their own values. Semantic fallout fixed: - locales/nl/browse.json: Dutch strings for the four Other Videos keys (Dutch landed on main after this branch). - data browse/bands.rs and screens library/mod.rs: the new SecKind::Video arm of main's band model and sort-value-under-posters match; an Other Videos clip is a movie row, so it takes the films' arm. - docs/liquid-glass.md: the "track wears the material only while it is no wider than the budget" paragraph is replaced by a sentence about the three-type strip. Signed-off-by: Heiko Kopp <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Oct 31, 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.
Summary
The top bar's glass no longer depends on how wide the strip is. New entries and longer labels can't take the material away.
GLASS_TRACK_MAXand its budget constants are gone. PastTAB_VIEW_MAXthe strip scrolls inside a track that stays glass.chip_name_budgetis the room the bar leaves, andChromeSnapshotre-elides when the strip or the profile changes. With no room left, the chip is the closed circle.backdrop::surface_withsplits a shared band on overlapping drawn rects, not on touching sampling footprints. The old rule put the chip and any track of 1432 px or wider in separate bands, which meant a second source job and a second page pass.Why
The Belarusian strip is 679 px on the TV, 7 px past the old 672 limit. The Watchlist pill from #831 added the 76 px that tipped it, so any build with
beand both library kinds lost the glass, stable included. A cap on a width set by languages and libraries would keep failing this way as the bar grows.Measurements
TV, debug flavour,
ARM_PROFILE=release, mock, 2026-10-30. Missed refreshes are for cycles 2-60 of 60. Single runs, apart from the two 1544 pxhero-ponglegs.GPU_ACTIVEp50hero-pongmissesgrid-pongmissesGPU_ACTIVEis fromhero-pongonly.hero-pongleg missed 104 and 69.Verification
the_belarusian_five_pill_strip_keeps_the_glassdraws a strip of the same shape and reads the published material. The host font's widths put it at 686 px, and the test pins the TV's pills at 679 px separately. A temporary 672 px gate turned it red.plx_ui,plx_gfxand the application crate's lib tests pass. CI is the full gate.🤖 Generated with Claude Code