Skip to content

font dialog: keep sample text white in dark mode - #371

Merged
rfindler merged 1 commit into
racket:masterfrom
otherjoel:font-dialog-dark-sample
Sep 21, 2026
Merged

rfindler merged 1 commit into
racket:masterfrom
otherjoel:font-dialog-dark-sample

Conversation

@otherjoel

@otherjoel otherjoel commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes an issue where, in dark mode on macOS, the sample text in the get-font-from-user dialog can't be seen. It is black text on a black field.

This issue was found and patch written by Claude:

text-field% makes its text white in dark mode. But the dialog replaces the sample's style each time a control changes, and once before it opens, so the white color is lost.

It looks like the right fix, and I can verify it works on macOS Sequioa in dark mode with Racket 9.3. But scrutinize accordingly.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
otherjoel added a commit to otherjoel/camp that referenced this pull request Sep 20, 2026
gui-lib's font dialog resets its sample's style on every change, which
drops the white foreground text-field% sets in dark mode and leaves
black on black. choose-font wraps get-font-from-user and recolors the
sample text once the dialog is up. A fix is proposed upstream
(racket/gui#371); this can go once a release carries it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@rfindler

Copy link
Copy Markdown
Member

This looks reasonable to me.

@rfindler
rfindler merged commit ce956f1 into racket:master Sep 21, 2026
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.

2 participants