move some stuff to case break.
This commit is contained in:
parent
b0c4218bcc
commit
ddf8d05204
1 changed files with 6 additions and 3 deletions
|
@ -92,9 +92,6 @@ export class BrowserWindow {
|
|||
minHeight: 390,
|
||||
frame: false,
|
||||
title: "Cider",
|
||||
vibrancy: "dark",
|
||||
transparent: process.platform === "darwin",
|
||||
hasShadow: true,
|
||||
show: false,
|
||||
// backgroundColor: "#1E1E1E",
|
||||
titleBarStyle: 'hidden',
|
||||
|
@ -134,12 +131,18 @@ export class BrowserWindow {
|
|||
break;
|
||||
case "win32":
|
||||
this.options.backgroundColor = "#1E1E1E";
|
||||
this.options.transparent = false;
|
||||
break;
|
||||
case "linux":
|
||||
this.options.backgroundColor = "#1E1E1E";
|
||||
this.options.autoHideMenuBar = true
|
||||
this.options.frame = true
|
||||
break;
|
||||
case "darwin":
|
||||
this.options.transparent = true;
|
||||
this.options.vibrancy = "dark";
|
||||
this.options.hasShadow = true;
|
||||
break;
|
||||
}
|
||||
|
||||
// Start the webserver for the browser window to load
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue