Merge pull request #4211 from ragingwind/dock-seticon

Add app.dock.setIcon to change icon of dock
This commit is contained in:
Cheng Zhao 2016-01-24 22:36:28 +08:00
commit 253a4f226f
5 changed files with 23 additions and 1 deletions

View file

@ -512,6 +512,12 @@ Shows the dock icon.
Sets the application's [dock menu][dock-menu].
### `app.dock.setIcon(image)` _OS X_
* `image` [NativeImage](native-image.md)
Sets the `image` associated with this dock icon.
[dock-menu]:https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/customizing_docktile/concepts/dockconcepts.html#//apple_ref/doc/uid/TP30000986-CH2-TPXREF103
[tasks]:http://msdn.microsoft.com/en-us/library/windows/desktop/dd378460(v=vs.85).aspx#tasks
[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx