tabpane font color

I have a question on how apple selects TabPane font color both foreground and background


I see In Mohave, native System Preferences->Display tabs has

white-text-on-blue-background when windows is focused

black-text-on-lightgray-background when window is unfocused


In macos11 BigSur, it is always black-text-on-white-background whether focused/unfocused.


We have a similar requirement of using the same effect in Java (JDK swing libraries)

I was trying selectedTextColor, selectedControlTextColor, controlTextColor, textBackgroundColor from UI Element color but unable to get the same effect of fg and bg color.


Can you please let me know how the foreground and background tabpane text color is obtained?

MacBook Pro

Posted on Nov 19, 2020 7:21 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

tabpane font color

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.