subtheme-dev/monokai-pro

Title of TitledBorder is unreadable

DevCharly opened this issue · 3 comments

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

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

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

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!