docs: Recommend to use ICO icon

This commit is contained in:
Cheng Zhao 2016-05-20 19:58:47 +09:00
parent d26480b74e
commit b33c04d041
3 changed files with 10 additions and 3 deletions

View file

@ -65,8 +65,9 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
`false`.
* `kiosk` Boolean - The kiosk mode. Default is `false`.
* `title` String - Default window title. Default is `"Electron"`.
* `icon` [NativeImage](native-image.md) - The window icon, when omitted on
Windows the executable's icon would be used as window icon.
* `icon` [NativeImage](native-image.md) - The window icon. On Windows it is
recommended to use `ICO` icons to get best visual effects, you can also
leave it undefined so the executable's icon will be used.
* `show` Boolean - Whether window should be shown when created. Default is
`true`.
* `frame` Boolean - Specify `false` to create a

View file

@ -25,7 +25,12 @@ const appIcon = new Tray(image);
Currently `PNG` and `JPEG` image formats are supported. `PNG` is recommended
because of its support for transparency and lossless compression.
On Windows, you can also load an `ICO` icon from a file path.
On Windows, you can also load `ICO` icons from file paths, to get best visual
effects it is recommended to include at least followings sizes in the icon:
* 16x16
* 32x32
* 256x256
## High Resolution Image

View file

@ -29,6 +29,7 @@ __Platform limitations:__
* When app indicator is used on Linux, the `click` event is ignored.
* On Linux in order for changes made to individual `MenuItem`s to take effect,
you have to call `setContextMenu` again. For example:
* On Windows it is recommended to use `ICO` icons to get best visual effects.
```javascript
contextMenu.items[2].checked = false;