![](/img/trans.png)
[英]How to customize the Electron title bar and how to make this as draggable
[英]Electron - Make Windows Title bar Looks like Muno Title bar
他,我是Muno的开发商。 也许我可以帮忙。
我使用browserWindow选项:
const {width, height} = electron.screen.getPrimaryDisplay().workAreaSize;
let options = {
show: false,
frame: false,
center: !isDev,
titleBarStyle: 'hidden',
width: Math.round((width / 100) * 85),
height: Math.round((height / 100) * 85),
};
另一部分只是CSS,我为交通信号灯按钮使用了此代码段: https : //codepen.io/atdrago/pen/yezrBR
希望这可以帮助。 你在做什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.