docs: nativeImage
api cleanup (#41570)
* docs: `nativeImage` api cleanup Co-authored-by: Erick Zhao <erick@hotmail.ca> * Update docs/api/native-image.md Co-authored-by: Erick Zhao <erick@hotmail.ca> * Update native-image.md Co-authored-by: Erick Zhao <erick@hotmail.ca> * Update docs/api/native-image.md Co-authored-by: Felix Rieseberg <fr@makenotion.com> Co-authored-by: Erick Zhao <erick@hotmail.ca> * Update link to app icon Co-authored-by: Alice Zhao <66543449+alicelovescake@users.noreply.github.com> Co-authored-by: Erick Zhao <erick@hotmail.ca> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Erick Zhao <erick@hotmail.ca>
This commit is contained in:
parent
d3b182f8b9
commit
d16f1d52e8
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