<Swing Dev> RFR: 8251377: [macos11] JTabbedPane selected tab text is barely legible [v3]

Sergey Bylokhov serb at openjdk.java.net
Thu Nov 19 00:12:08 UTC 2020


On Wed, 18 Nov 2020 07:33:15 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> On macOS 11 (bigsur) beta, using the Swing Aqua Look and Feel, the text of the selected JTabbedPane tab title text is just a light gray outline of white text on a white background. The macOS 11 design inverted from dark background / light text to light background / dark text, 
>> Proposed fix is to use dark color in light background so I used lightGray instead of "white" which is being used now, if we are on BigSur.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use proper apple UI Element color

src/java.desktop/macosx/classes/com/apple/laf/AquaImageFactory.java line 500:

> 498:     }
> 499: 
> 500:     public static Color getControlTextColorUIResource() {

Should be "getSelectedControlColorUIResource"?

-------------

PR: https://git.openjdk.java.net/jdk/pull/1182


More information about the swing-dev mailing list