<Swing Dev> RFR: 8249251: [dark_mode ubuntu 20.04] The selected menu is not highlighted in GTKLookAndFeel
Pankaj Bansal
pankaj.b.bansal at oracle.com
Tue Jul 14 05:48:22 UTC 2020
Hello Phil,
Thanks for the review.
<<And I think we do have a bug already on the subject of re-doing
this properly by reading the CSS ??
Yes, we have a bug filled already. I will soon work on this.
https://bugs.openjdk.java.net/browse/JDK-8220053
Regards,
Pankaj
On 14/07/20 2:28 AM, Philip Race wrote:
> Looks OK although it is a workaround and we may some day find some case
> in which the result although legible might differ from the native
> colours.
>
> And I think we do have a bug already on the subject of re-doing
> this properly by reading the CSS ??
>
> -phil.
>
>
> On 7/13/20, 11:30 AM, Pankaj Bansal wrote:
>> Hi All,
>>
>> Please review the following fix for jdk15.
>>
>> Bug : https://bugs.openjdk.java.net/browse/JDK-8249251
>> webrev: http://cr.openjdk.java.net/~pbansal/8249251/webrev01/
>> <http://cr.openjdk.java.net/%7Epbansal/8249251/webrev01/>
>>
>> Issue: In Ubuntu 20.04 in dark mode, the selected Menu is not being
>> highlighted properly. so, there is no difference between selected and
>> unselected Menu. The issue can be reproduced by running Swingset2 or
>> using the test added in fix.
>>
>> Cause: In dark mode, the highlight color for Menu is not visible over
>> the dark background color for the Menubar. So, the highlight is not
>> visible properly and it looks like there is no highlight being drawn.
>>
>> Fix: The fix is to use some color for highlighting, which will be
>> properly visible. We have taken the background color for selected
>> text. This color is is visible over the dark Background easily. The
>> fix is tested on Ubuntu 18.04, Ubuntu 20.04 and OL 8.2.
>>
>> Added an automated test to verify that the highlight color is same as
>> background color for selected text. The test passes on mach5 with
>> multiple iterations. Link added in JBS.
>>
>>
>> Regards
>> Pankaj
>>
More information about the swing-dev
mailing list