Repository navigation
Give unstyled text a readable default in both themes - #982
Merged
AnthonyRonning merged 1 commit intoSep 21, 2026
Merged
AnthonyRonning merged 1 commit into
AnthonyRonning merged 1 commit into
Conversation
Text that set no color of its own rendered in GPUI's default, black, which vanished on the dark surfaces and looked fine in light mode. Every omission became a dark-mode bug found by eye: an input typed invisibly inside an unstyled form, a pairing code came out in caption gray. The screens compensated with hand-set colors on hundreds of elements. The window root now sets the primary text color as the default, so an omission falls back to readable text in either theme. The text input draws typed text in the primary color rather than whatever it inherits, so it reads wherever it is placed. A test computes the WCAG contrast of every text role on every resting surface in both palettes and holds body roles to 4.5:1 and status and link colors to 3:1. It found the light palette wanting: captions were 2.5:1 on white and the warning color, never adapted for light, was 2.3:1. Captions move to a darker gray and the light warning to amber-700. Co-Authored-By: Claude Fable 5.1 <[email protected]>
AnthonyRonning
approved these changes
Sep 21, 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.
Dark-mode readability bugs kept recurring in maple-gpui: an input typed invisibly inside an unstyled form, a pairing code rendered in caption gray. The palette was fine; the mechanism that picks a color was not.
TextInputdrew typed text in whatever color it inherited. It now uses the primary text color, so it reads wherever it is placed.0x6b6b6band the light warning to amber-700. Dark passes unchanged.Follow-up, not in this PR: replace hand-set colors in the settings pane and chat with role helpers (caption, code chip, title) so captions set on containers stop leaking to children. That sweep conflicts with the remote-development branch and should land after it.
Tests:
cargo test -p maple-gpui(337 pass),cargo clippy -p maple-gpui --all-targets -- -D warningsclean.🤖 Generated with Claude Code