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

Title of TitledBorder is unreadable #37

Closed
DevCharly opened this issue Apr 28, 2022 · 3 comments
Closed

Title of TitledBorder is unreadable #37

DevCharly opened this issue Apr 28, 2022 · 3 comments

Comments

@DevCharly
Copy link

Describe the bug
When using a javax.swing.border.TitledBorder, the title is unreadable because the color TitledBorder.titleColor is set to a background color. But this is the color of the text and should be set to a foreground color.

Screenshots

image

Expected:

image

@espositocode
Copy link
Collaborator

Is there a particular place in the UI, like somewhere in the Preferences page, where I can reproduce this?

@DevCharly
Copy link
Author

Is there a particular place in the UI, like somewhere in the Preferences page, where I can reproduce this?

Unfortunately, no.
IDEA uses some kind of titled separator.
But 3rd party plugins could use TitledBorder.

This issue came up when using Monokai Pro in another Swing application using FlatLaf:
JFormDesigner/FlatLaf#524

Anyway, you can reproduce it in IDEA by creating a new form (New > Swing UI Designer > GUI form), select the panel and set the property "border > title" in the properties view:

image

Same form in Darcula:

image

@espositocode
Copy link
Collaborator

Despite that your issue was perfectly documented, and even pointed out exactly which field needed to be updated, I finally fixed this four months later: https://plugins.jetbrains.com/plugin/13643-monokai-pro-theme/versions/stable/216933

Thanks!

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

No branches or pull requests

2 participants