Repository navigation
[CTX-1271] fix(render): occlude lower chrome under detached floats (#2138) - #2160
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 16, 2026
Closed
Xuepoo
pushed a commit
that referenced
this pull request
Oct 16, 2026
…ts (#2168) While a detached float is up, the surviving tiled leaves paint their Core-owned chrome (focus/idle rings, shadows, glows) in the background around the float. Follow-up to #2138/#2160, which fixed lower chrome leaking OVER the float interior; this is the behind-float variant. Design: HIDE, not dim. The surface already clears to theme background in the gap bands, so suppressing background-tier chrome leaves a clean backdrop while tiled text stays live. No new primitive, no alpha policy. Detached-only gate via FloatStore: pinned overlays share the Float tier but must not restyle the workspace they annotate. Popup/Messages tiers keep their foreground chrome; only tiers strictly below Float (tiled None, Editor base) hide. The float keeps its own chrome, glyph clipping is unchanged (clip still returned), and the tiled baseline with no detached float is untouched.
Xuepoo
added a commit
that referenced
this pull request
Oct 16, 2026
…ts (#2168) (#2174) * [CTX-1280] fix(ui): hide background tiled chrome behind detached floats (#2168) While a detached float is up, the surviving tiled leaves paint their Core-owned chrome (focus/idle rings, shadows, glows) in the background around the float. Follow-up to #2138/#2160, which fixed lower chrome leaking OVER the float interior; this is the behind-float variant. Design: HIDE, not dim. The surface already clears to theme background in the gap bands, so suppressing background-tier chrome leaves a clean backdrop while tiled text stays live. No new primitive, no alpha policy. Detached-only gate via FloatStore: pinned overlays share the Float tier but must not restyle the workspace they annotate. Popup/Messages tiers keep their foreground chrome; only tiers strictly below Float (tiled None, Editor base) hide. The float keeps its own chrome, glyph clipping is unchanged (clip still returned), and the tiled baseline with no detached float is untouched. * [CTX-1280] fix: assert tiled chrome after float restoration --------- Co-authored-by: reviewer <[email protected]>
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.
Priority: P1 | Area: ui | Labels: bug,P1,area:ui | Milestone: 0.0.24 | RFC: n/a | Task: CTX-1271
Closes #2138.
Summary
Floating mode rendered tiled gaps/panel outlines behind the float: tiled text was hidden correctly, but the divider/border rings (and shadows/glows) of panels behind still painted over the float interior.
Root cause
DrawListpaint order is fills, then rounded fills, then backgrounds, then overlay fills, then glyphs. The CTX-1148 opaque float fill is aFillRect(fills pass), so lower leavesRoundedFillrings/shadows/glows (rounded pass, painted later) drew over it.Fix
crates/bitty-runtime/src/runtime/present.rs: Float-tier frames now also push a solid rounded cover (same frame,border: 0, float radius, theme bg) into the rounded pass, ahead of the float own shadow/glow/ring. Lower chrome is occluded; tiled baseline unchanged (Float tier only, one fill + one cover per float frame, empty frames skip).Verification (TDD + headed)
crates/bitty-runtime/tests/float_chrome_occlusion.rs: three-pane + detach over the divider; interior probe must be exactly theme bg. RED before (690 leaked px), GREEN after.recording/ctx-1271/shots/20261016T102103Z-04-2138-float.png(before),20261016T105000Z-f2138-02-float.png(after).Gates
cargo fmt --check,cargo clippy -D warnings,just test(7099 nextest + doctests + platform + benches + dev): green.cargo check --workspace --all-targets: green.cargo check --target x86_64-pc-windows-gnu: green.just check: green except pre-existingscratch-pathsfailure on origin/main itself (WSL/mnt/literals incomponent/wsl.rs,terminal/src/component.rs; untouched by this PR; fails identically on clean main).just ci-local: cannot complete in this environment — the Quality job dies at the first compile because sccache GHA backend has no cache service under act (create gha cache failed ... not in github action environment; zero compiles attempted). Environmental, source-independent; remote CI runs Quality gates for real. Log:recording/ctx-1271/ci-local-2138.log.Reviewer notes