<AWT Dev> [10] JDK-8169044: The tray icon color is not green

Shashidhara Veerabhadraiah shashidhara.veerabhadraiah at oracle.com
Mon Jul 31 06:59:33 UTC 2017


Hi, Kindly review a fix for JDK-8169044 where the non hi dpi icon was picked among the icon set of hi dpi and a non hi dpi icons for a hi dpi display screen.

 

Issue: The non hi dpi icon is red in color (and hi dpi icon is green in color) and was getting picked up among the set for a hi dpi display screen as shown below in the picture:



 

Solution and fix: The icon's buffered images are not subjected to the scaling because of the hi dpi screen. Hence, the default non hi dpi icon was getting picked up for rendering the tray icon. Now the source code modified to apply necessary transformations to the bufferedimages to get the default icon based on the default display screen. Below is the output after the fix:



 

Bug: https://bugs.openjdk.java.net/browse/JDK-8169044

Webrev: http://cr.openjdk.java.net/~pkbalakr/shashi/8169044/webrev.00/

 

Thanks and regards,

Shashi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20170730/5df22642/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 26360 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20170730/5df22642/image001-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3285 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20170730/5df22642/image002-0001.png>


More information about the awt-dev mailing list