Closed DevCharly closed 2 years ago
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: https://github.com/JFormDesigner/FlatLaf/issues/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:
Same form in Darcula:
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!
Describe the bug When using a
javax.swing.border.TitledBorder
, the title is unreadable because the colorTitledBorder.titleColor
is set to a background color. But this is the color of the text and should be set to a foreground color.Screenshots
Expected: