We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 package.json 中,添加如下配置即可:
package.json
"window": { "icon": "app/img/book.png" }
注意,该设置与下面的“设置文件图标”互不影响,各自负责设置不同地方的图标,没有交集。
参考:
用 Resource Hacker 打开 exe 文件,修改图标后保存即可。Total Commander 需要重启一下才能看到新图标,Windows 资源管理器就不用。
var gui = require('nw.gui') var win = gui.Window.get() win.maximize()
var path = require('path') var ebookPath = path.join(process.cwd(), 'app/ebook/index.html') var win = gui.Window.get() var width = win.width var height = win.height var config = { 'width': width, 'height': height } nw.Window.open(ebookPath, config)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
设置任务栏图标及标题栏左侧图标
在
package.json
中,添加如下配置即可:注意,该设置与下面的“设置文件图标”互不影响,各自负责设置不同地方的图标,没有交集。
参考:
设置文件图标
用 Resource Hacker 打开 exe 文件,修改图标后保存即可。Total Commander 需要重启一下才能看到新图标,Windows 资源管理器就不用。
参考:
启动后让窗口最大化
参考:
打开新窗口并设置其尺寸
参考:
参考资料
The text was updated successfully, but these errors were encountered: