Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -fx-highlight-text-fill (selected text color) (issue #303) #428

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JFormDesigner
Copy link
Contributor

Note: this PR should be not yet merged into master because it does not work correctly as long as the JDK bug (see below) is not fixed. Created the PR to avoid that the fix is lost...

This PR attempts to fix text color of selection (white selected text), BUT:
Because of JDK bug https://bugs.openjdk.java.net/browse/JDK-8149134
this does not work correctly if a paragraph contains more than one segment
and the selection is (also) in the second or later segments.
Visually the text color of the selection may be mix black & white.
Sometimes text becomes invisible (white text on white background).

Mixed text selection color:

image

Sometimes makes text invisible:

image

@JordanMartinez
Copy link
Contributor

Thanks for filing this @JFormDesigner

Because of JDK bug https://bugs.openjdk.java.net/browse/JDK-8149134
this does not work correctly if a paragraph contains more than one segment
and the selection is (also) in the second or later segments.
Visually the text color of the selection may be mix black & white.
@Jugen Jugen force-pushed the fx-highlight-text-fill-fix branch 2 times, most recently from d30371e to 494b398 Compare August 30, 2024 09:15
@Jugen Jugen force-pushed the fx-highlight-text-fill-fix branch from 494b398 to 43a987f Compare September 4, 2024 09:26
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.

5 participants