Artem: this is a good idea, thanks.

Mike: I'm trying to do something like this:

http://cr.openjdk.java.net/~anthony/8-15-lowResIcon-7148275.1/

i.e. I'm feeding an NSImage with images of all available sizes.

A sample test provides a list of icons 16x16, 32x32, 48x48, and 64x64. I've verified that they all get added into the representations array. However, even if I resize the dock to be very very tiny, it still chooses the 64x64 icon to represent a minimized window. This is actually wrong since the 16x16 icon would look better in this case than a resized 64x64 icon.

Any idea how this can be fixed?

Another solution would be to take an approach similar to what we use on MS Windows: we query the system icon size, and then choose the best image (see SunToolkit.getScaledIconData()). But I can't find API that would allow me to determine the current dock icon size on OS X. Is there any?

--
best regards,
Anthony

On 3/26/2012 5:19 PM, Artem Ananiev wrote:

It was fine for 7uX, but can we do anything better for JDK8? Is the largest icon always the best? I remember on Windows we use another approach to find what exactly icon from the list to apply.

Thanks,

Artem

On 3/23/2012 8:18 PM, Anthony Petrov wrote:
Hello,

Please review a fix for http://bugs.sun.com/view_bug.do?bug_id=7148275 at:

http://cr.openjdk.java.net/~anthony/8-15-lowResIcon-7148275.0/

This is a direct forward-port of the same fix from 7u4.

More details:
http://mail.openjdk.java.net/pipermail/macosx-port-dev/2012-March/003531.html


--
best regards,
Anthony

Reply via email to