-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS: Make SVG/HiDPI icons work in the main menu bar #7477
Conversation
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. |
platform/openide.util.ui/test/unit/src/org/openide/util/UtilitiesTest.java
Outdated
Show resolved
Hide resolved
e0dd241
to
e555217
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- source/target needs to be changed to release: javac.relese=11
- and remove the OpenIDE-Module-Java-Dependencies manifest entry again since it is automatically added now
…ons work in the MacOS menu bar.
e555217
to
54a9af2
Compare
@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. |
@mbien this is still marked as requesting changes from you? |
@neilcsmith-net nope, I marked the two points I commented on as resolved - all good from my side. |
@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. |
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. |
Thanks!! |
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 #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.)