admin管理员组文章数量:1330565
I don't know if this is possible, but I figured I'd ask.
After my electron app opens a browser window and is displaying some icon in the taskbar and in its title bar for the window, can I change one or both of those icons while the browser is open? I suspect the answer is a hard no, but I thought it'd be cool if I could make it react in some way.
The search terms I came up with were mostly leading me to answers for how to change the icon before the window is open.
I don't know if this is possible, but I figured I'd ask.
After my electron app opens a browser window and is displaying some icon in the taskbar and in its title bar for the window, can I change one or both of those icons while the browser is open? I suspect the answer is a hard no, but I thought it'd be cool if I could make it react in some way.
The search terms I came up with were mostly leading me to answers for how to change the icon before the window is open.
Share Improve this question asked Aug 30, 2018 at 12:17 jadraptorjadraptor 552 silver badges8 bronze badges1 Answer
Reset to default 7Yes, you can use win.setIcon('/path/to/icon.png');
to change the window icon.
setIcon
Docs
本文标签: javascriptHow to change window icon in electron after browser is openStack Overflow
版权声明:本文标题:javascript - How to change window icon in electron after browser is open? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742258429a2442059.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论