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

MessagesPane: Force black text color on yellow selection #192

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

privat
Copy link
Contributor

@privat privat commented Aug 9, 2023

When using different swing look and feel (LAF), the yellow highlight on assembly error can make the message hard to read if the LAF uses the white color for selected texts.

A simple solution is to force the black text, so it is readable on a yellow background.

Note: I use the following to run rars with flatlaf

java -cp "lib/flatlaf-3.1.1.jar:rars.jar" -Dswing.defaultlaf=com.formdev.flatlaf.FlatIntelliJLaf rars.Launch

@TheThirdOne
Copy link
Owner

Looks good. Given that the yellow does not respect look and feel, it makes sense to also override the text color.

@TheThirdOne TheThirdOne merged commit b0c5cd1 into TheThirdOne:master Sep 24, 2023
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.

None yet

2 participants