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

Tres Finocchiaro github.com+6345473+tresf at openjdk.java.net
Wed Jan 20 14:49:52 UTC 2021


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)

> simply add a new comment to the pull request

✔️

-------------

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


More information about the awt-dev mailing list