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

Sergey Bylokhov serb at openjdk.java.net
Tue Nov 17 20:30:03 UTC 2020


On Tue, 17 Nov 2020 10:00:20 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 apple UI Element color

src/java.desktop/macosx/classes/sun/lwawt/macosx/LWCToolkit.java line 216:

> 214:         0xFFC0C0C0, // secondarySelectedControlColor
> 215:         0xFF303030, // controlDarkShadowColor
> 216:         0xFFFFFFFF, // controlTextColor

As far as I understand the fix, It is a "alternateSelectedControlTextColor" not an "controlTextColor"

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

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


More information about the swing-dev mailing list