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,
|
minHeight: 390,
|
||||||
frame: false,
|
frame: false,
|
||||||
title: "Cider",
|
title: "Cider",
|
||||||
vibrancy: "dark",
|
|
||||||
transparent: process.platform === "darwin",
|
|
||||||
hasShadow: true,
|
|
||||||
show: false,
|
show: false,
|
||||||
// backgroundColor: "#1E1E1E",
|
// backgroundColor: "#1E1E1E",
|
||||||
titleBarStyle: 'hidden',
|
titleBarStyle: 'hidden',
|
||||||
|
@ -134,12 +131,18 @@ export class BrowserWindow {
|
||||||
break;
|
break;
|
||||||
case "win32":
|
case "win32":
|
||||||
this.options.backgroundColor = "#1E1E1E";
|
this.options.backgroundColor = "#1E1E1E";
|
||||||
|
this.options.transparent = false;
|
||||||
break;
|
break;
|
||||||
case "linux":
|
case "linux":
|
||||||
this.options.backgroundColor = "#1E1E1E";
|
this.options.backgroundColor = "#1E1E1E";
|
||||||
this.options.autoHideMenuBar = true
|
this.options.autoHideMenuBar = true
|
||||||
this.options.frame = true
|
this.options.frame = true
|
||||||
break;
|
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
|
// Start the webserver for the browser window to load
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue