docs: nativeImage
api cleanup (#41519)
* docs: `nativeImage` api cleanup * Update docs/api/native-image.md * Update native-image.md * Update docs/api/native-image.md Co-authored-by: Felix Rieseberg <fr@makenotion.com> * Update link to app icon Co-authored-by: Alice Zhao <66543449+alicelovescake@users.noreply.github.com> --------- Co-authored-by: Felix Rieseberg <fr@makenotion.com> Co-authored-by: Alice Zhao <66543449+alicelovescake@users.noreply.github.com>
This commit is contained in:
parent
150c2bcef9
commit
2f133f5e28
2 changed files with 61 additions and 56 deletions
|
@ -60,7 +60,7 @@ app.whenReady().then(() => {
|
|||
|
||||
**MacOS**
|
||||
|
||||
* Icons passed to the Tray constructor should be [Template Images](native-image.md#template-image).
|
||||
* Icons passed to the Tray constructor should be [Template Images](native-image.md#template-image-macos).
|
||||
* To make sure your icon isn't grainy on retina monitors, be sure your `@2x` image is 144dpi.
|
||||
* If you are bundling your application (e.g., with webpack for development), be sure that the file names are not being mangled or hashed. The filename needs to end in Template, and the `@2x` image needs to have the same filename as the standard image, or MacOS will not magically invert your image's colors or use the high density image.
|
||||
* 16x16 (72dpi) and 32x32@2x (144dpi) work well for most icons.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue