<Swing Dev> RFR: 8251377: [macos11] JTabbedPane selected tab text is barely legible
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Mon Nov 30 04:51:55 UTC 2020
On Wed, 25 Nov 2020 03:19:32 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>>> 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.
>>
>> The problem here is that we do not control the color of the tab pane, it is controlled by Apple, and if we hardcore some color on our side we will get the same bugs again and again. I am sure that a similar bug will come in the dark mode if we will enable it.
>
> Since color of tabpane is controlled by Apple, Can you point me to the code where we call Apple api to draw the color of tabpane?
Since the apple forum post is still unanswered and if we want it to be fixed for JDK16, I dont see any other alternative than to fix by what I did in the 1st iteration of this by hardcoding. I dont think we are going to enable dark mode in JDk16 so we will have time to think on that when we enable that and hopefully Apple will come back by that time and we can revisit this.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1182
More information about the swing-dev
mailing list