GitHub user mhalachev added a comment to the discussion: Upcoming macOS app 
icon changes

Below is a  working local proof of concept.

Adding `Assets.car` alone was insufficient. With `-Xdock:icon`, the running IDE 
displayed the static ICNS icon; removing it produced the default Java icon. The 
native dark icon appeared briefly during shutdown.

Replacing the outer launcher with a native executable that loads the bundled 
JVM in-process through `JLI_Launch`, without an explicit Dock icon override, 
allowed NetBeans to remain running with the correct icon for Light and Dark 
mode, as well as custom Clear and Tinted styles, like in the screenshots above.

This was tested with NetBeans 31 on Apple Silicon running macOS 27.2.1. Intel 
Macs and earlier macOS versions remain untested. No NetBeans JARs or JDK code 
were modified.

[Prototype and reproduction 
instructions](https://github.com/mhalachev/netbeans-nbpackage/tree/experiment/macos-native-icon-launcher/experiments/macos-native-icons).
 This is not yet a production launcher replacement: configuration handling, 
restarts, updates, file-opening behavior, and release signing still need 
validation and integration.

@neilcsmith-net, does this look like a reasonable direction for NBPackage? 
Would a draft PR be useful for discussing the launcher approach?

The prototype was developed with assistance from OpenAI Codex.

GitHub link: 
https://github.com/apache/netbeans/discussions/8671#discussioncomment-19920378

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to