electron13 transparent为true时候isMaximized不起作用
electron13 transparent为true时候isMaximized不起作用,网上好多人说总是返回false 等。
后来看gitub 上说17版本已经修复,但是目前项目不能升级electron ,还要透明主题,在为难时候发现一个大佬写了插件,解决:
https://www.npmjs.com/package/electron-frameless-window-plugin
npm i electron-frameless-window-plugin
// main.js const { app } = require('electron') const { plugin } = require('electron-frameless-window-plugin') app.on('ready', () => { ... }) plugin({ setGlobal: true }) // apply to each window
标签:plugin,window,transparent,electron,true,isMaximized From: https://www.cnblogs.com/wangyongping/p/16987819.html