mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
Ditch the window frame on win32
This commit is contained in:
parent
7a79e7e016
commit
83b8d365bb
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue