Ditch the window frame on win32

This commit is contained in:
Markus Olsson 2016-06-22 00:07:13 +02:00
parent 7a79e7e016
commit 83b8d365bb

View file

@ -9,16 +9,22 @@ export default class AppWindow {
public constructor(stats: Stats) {
this.window = new BrowserWindow(
{
const windowOptions: Electron.BrowserWindowOptions = {
width: 800,
height: 600,
show: false,
titleBarStyle: 'hidden',
// This fixes subpixel aliasing on Windows
// See https://github.com/atom/atom/commit/683bef5b9d133cb194b476938c77cc07fd05b972
backgroundColor: '#fff'
})
}
if (process.platform === 'darwin') {
windowOptions.titleBarStyle = 'hidden'
} else if (process.platform === 'win32') {
windowOptions.frame = false
}
this.window = new BrowserWindow(windowOptions)
this.stats = stats
}