mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
github-electron: Add app.dock.setIcon() API
https://github.com/atom/electron/blob/master/docs/api/app.md#appdockseticonimage-os-x
This commit is contained in:
1 parent
ce480b5fc3
commit
e5fc615482
2 files changed
+7
No files matched your search
@@ -169,6 +169,7 @@ app.dock.setMenu(dockMenu);
|
||||
app.dock.setBadge('foo');
|
||||
var id = app.dock.bounce('informational');
|
||||
app.dock.cancelBounce(id);
|
||||
app.dock.setIcon('/path/to/icon.png');
|
||||
|
||||
app.setUserTasks([
|
||||
<Electron.Task>{
|
||||
|
||||
Vendored
+6
@@ -1125,6 +1125,12 @@ declare module Electron {
|
||||
* Note: This API is only available on Mac.
|
||||
*/
|
||||
setMenu(menu: Menu): void;
|
||||
/**
|
||||
* Sets the image associated with this dock icon.
|
||||
*
|
||||
* Note: This API is only available on Mac.
|
||||
*/
|
||||
setIcon(icon: NativeImage | string): void;
|
||||
}
|
||||
|
||||
interface Task {
|
||||
|
||||
Reference in new issue
Block a user