Skip to content

No scroll fades: the dark band across the composer on every key - #144

Merged
xmagit merged 1 commit into
mainfrom
composer-line
Nov 27, 2026
Merged

xmagit merged 1 commit into
mainfrom
composer-line

Conversation

@xmagit

@xmagit xmagit commented Nov 27, 2026

Copy link
Copy Markdown
Owner

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 ScrollArea paints 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 a ScrollArea on 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.rs sets style.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

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>
@xmagit
xmagit merged commit dc77fcc into main Nov 27, 2026
1 check passed
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