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

Reply via email to