subtheme-dev / monokai-pro

The unofficial Monokai Pro theme by Subtheme.
https://subtheme.dev/monokai-pro
MIT License
132 stars 27 forks source link

Title of TitledBorder is unreadable #37

Closed DevCharly closed 2 years ago

DevCharly commented 2 years ago

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 commented 2 years ago

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

DevCharly commented 2 years ago

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:

image

Same form in Darcula:

image

espositocode commented 2 years ago

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!