When inactive, I use 0 0 0 192. As far as I can tell, this does not correspond 
to a named color.
It would be wrong to assume that Apple only uses named colors in their UIs.
The named colors are for application developers, not for Apple itself.

  Alan


> On Nov 19, 2020, at 4:05 PM, Alan Snyder <javali...@cbfiddle.com> wrote:
> 
> VAqua uses controlTextColor which has the value 255 255 255 217.
> 
> If you are seeing opaque white, then the alpha channel is getting lost 
> somewhere.
> 
>   Alan
> 
> 
>> On Nov 19, 2020, at 10:59 AM, Sergey Bylokhov <s...@openjdk.java.net 
>> <mailto:s...@openjdk.java.net>> wrote:
>> 
>> On Thu, 19 Nov 2020 10:51:55 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org 
>> <mailto:psadhuk...@openjdk.org>> wrote:
>> 
>>>> I have tried to test this change on macOS 10.15 and found some differences 
>>>> from the old behavior.
>>>> Before the fix:
>>>> - The color was white for the selected tab while the window was focused, 
>>>> the same as in the native app(I have tested the tabs in the System 
>>>> preferences->Displays). So it worked fine.
>>>> - The color was white for the selected tab while the window was 
>>>> unfocused(some other app is in focus). This is different from the native 
>>>> app, which uses black color. So this is a bug.
>>>> 
>>>> After the fix:
>>>> - The color is "blurred white" or even "light blue" for the selected tab 
>>>> while the window is focused.
>>>> - The color is "light blue" for the selected tab while the window is 
>>>> unfocused.
>>>> 
>>>> I think the new color used in the fix can be configured in the System 
>>>> Preferences -> General -> Highlight Color. If I select the green color 
>>>> then the tabs start to use green as a font color, which looks incorrect.
>>> 
>>> 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, it is always black-text-on-white-background whether 
>>> focused/unfocused.
>>> 
>>> Current JDK tabpane always shows black background (when tab is selected) 
>>> which is not configurable, at least I could not change it. Only thing i 
>>> could change is the foreground text color. 
>>> As was told to get color from native, I could see only 
>>> "selectedTextBackground" and "selectedControlColor" works on both 
>>> pre-macos11 and macos11 as it gives bluish text color which is legible on 
>>> black (mohave) and white (macos11) background.
>>> 
>>> All other native-obtained-colors like selectedTextColor, 
>>> selectedControlTextColor, controlTextColor, textBackgroundColor either 
>>> gives black or white which is not legible on either pre-macos11 or macos11, 
>>> so was not used.
>> 
>> Then try to dig into it a little bit, probably a good reason to ask about 
>> the current font color in the tab at the Apple forum.
>> 
>> -------------
>> 
>> PR: https://git.openjdk.java.net/jdk/pull/1182 
>> <https://git.openjdk.java.net/jdk/pull/1182>

Reply via email to