【发布时间】:2018-02-25 23:36:11
【问题描述】:
【问题讨论】:
标签: javascript html electron titlebar
【问题讨论】:
标签: javascript html electron titlebar
他,我是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,我将这个 sn-p 用于交通灯按钮: https://codepen.io/atdrago/pen/yezrBR
希望这会有所帮助。你在做什么?
【讨论】: