<AWT Dev> RFR: 8252015: [macos11] java.awt.TrayIcon requires updates for template images

Peter Zhelezniakov peterz at openjdk.java.net
Thu Nov 26 08:01:55 UTC 2020

On Tue, 6 Oct 2020 08:19:25 GMT, Peter Zhelezniakov <peterz at openjdk.org> wrote:

>> Hi, Peter. You are welcome!
>> Just an initial question about the template images, can you please provide some steps to reproduce this bug and so it will be possible to check that the fix solves it.
> Hi Sergey, and thanks for looking into this!
> Try the attached jar, it's a modified version of TrayIconDemo using a template icon taken from Wikimedia Commons. Without the fix, or without `-Dsun.awt.enableTemplateImages`, the icon disappears if you switch to Dark theme. With the fix and the property set, the system repaints it in white.
> [TrayIconDemo.jar.zip](https://github.com/openjdk/jdk/files/5332241/TrayIconDemo.jar.zip)

Filed [CSR request](https://bugs.openjdk.java.net/browse/JDK-8255597)


PR: https://git.openjdk.java.net/jdk/pull/481

More information about the awt-dev mailing list