netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

MacOS: Make SVG/HiDPI icons work in the main menu bar

Open eirikbakke opened this issue 1 year ago • 2 comments

Adjust the Icon implementation in ImageUtilities to make SVG/HiDPI icons work in the MacOS menu bar.

This requires Java 9 or above, due to the need to implement the MultiResolutionImage interface.

The effect can be seen e.g. for the Undo and Redo actions in the Edit menu, which have SVG icons present. Some more menu actions will have SVG icons once https://github.com/apache/netbeans/pull/7463 is merged.

(I'd upload a screenshot here but I don't have a Mac available at the moment. I have tested the patch on MacOS many times in the last 6 months, though, and it has also been confirmed not to cause trouble on the IDE on my Windows machine.)

eirikbakke avatar Jun 13 '24 21:06 eirikbakke

I see a test failing called "NetBeans / APISupport Modules on Linux/JDK 8 (pull_request)". Is the openide.util.ui module (which contains ImageUtilities) required to work with Java 8? In that case this patch can't work.

eirikbakke avatar Jun 13 '24 22:06 eirikbakke

@mbien Ah, sorry, I misunderstood that comment to be about something that happened in the other PR. Now done and pushed again... waiting for tests to pass.

eirikbakke avatar Jun 27 '24 06:06 eirikbakke

@mbien this is still marked as requesting changes from you?

neilcsmith-net avatar Jul 17 '24 10:07 neilcsmith-net

@neilcsmith-net nope, I marked the two points I commented on as resolved - all good from my side.

mbien avatar Jul 17 '24 13:07 mbien

@mbien you should be able to dismiss the review then if you don't want to switch to approve.

@eirikbakke over to you to merge.

neilcsmith-net avatar Jul 17 '24 13:07 neilcsmith-net

done, I thought dismiss review would delete everything i said, but all it does is to remove the red marker. So I always pressed the re-request review button to get rid of the red marker.

mbien avatar Jul 17 '24 13:07 mbien

Thanks!!

eirikbakke avatar Jul 17 '24 14:07 eirikbakke