Electron Broken Tray Icon Example
See this issue first: electron/issues/3376
This is an example displaying how Electron's NativeImage
does not use the appropriate dpi icon when using NativeImage.toDataUrl
.
The icons are inside the assets/
directory:
[email protected]
(this image is stretched to show that it is using @1x when it shoudl use @2x)[email protected]
Screenshot
Run
npm install
- To use
NativeImage.toDataUrl
:npm run start -- --use-data-url
- To use only
NativeImage.createFromPath
:npm run start