Skip to content

Fix text-selection foreground color#684

Merged
dhardy merged 4 commits intomasterfrom
push-omsookkxrmsq
Mar 23, 2026
Merged

Fix text-selection foreground color#684
dhardy merged 4 commits intomasterfrom
push-omsookkxrmsq

Conversation

@dhardy
Copy link
Copy Markdown
Collaborator

@dhardy dhardy commented Mar 23, 2026

This now (once again) automatically chooses the text foreground colour from the theme's text and text_invert colours based on the background colour.

Also applies to highlighters, but only where the highlighter uses the UI theme's selection-foreground colour. This is roughly the desired behaviour but handling of theme colours may need further tweaks.

Also: replace highlight::Text with highlight::Cache (essentially removing the highlighter itself from Text but keeping all cached formatting / style tokens).

@dhardy dhardy force-pushed the push-omsookkxrmsq branch from 35691ae to 904f0ba Compare March 23, 2026 10:44
@dhardy dhardy merged commit 8664857 into master Mar 23, 2026
5 checks 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