Repository navigation
No scroll fades: the dark band across the composer on every key - #144
Merged
Merged
Conversation
egui 0.37 fades a scroll area's edge whenever its content overflows, in the colour of the Ui's background. The composer's field is a scroll area on a surface ATOMICS paints itself, so the fade was the window's near-black, 20 px tall at the field's bottom (the middle of the composer), and its strength changed with every key as the field overflowed by a few pixels or none. The conversation's bottom edge did the same for a frame. The theme turns the fade off for every scroll area. A test types six keys and checks that no gradient is painted over the composer; it fails with the fade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Max: "when typing there's still like a black line across the text area input field flashing on each keydown", "in the middle of the textarea".
Cause. egui 0.37's
ScrollAreapaints a fade at an edge whenever the content overflows (ScrollFadeStyle, strength 0.5, 20 px), in the colour of the Ui stack's background. The composer's field is aScrollAreaon a surface ATOMICS paints by hand, so that colour was the window's near-black. The band was 20 px tall at the field's bottom (y 916–936 of a composer spanning 886–986: its middle). Its strength changed with every key: probed over six keys it went from alpha 0x02 to 0x5A between press, release and idle frames, because the field overflowed by a few pixels or not at all. The text and cursor never moved; only the band did. The conversation's own bottom fade flashed for a frame the same way.Fix.
theme.rssetsstyle.spacing.scroll.fade.strength = 0.0, for the desktop and the browser alike. ATOMICS never configured this fade; it came with egui and assumes a background it does not know under ATOMICS's painted surfaces.Test.
typing_in_the_composer_paints_no_band_across_it(atomics-web) types six keys with press, release and idle frames and checks no gradient mesh is painted over the composer. It fails with the fade back on. atomics-ui and atomics-web suites pass locally.🤖 Generated with Claude Code