enables native linux chrome

This commit is contained in:
booploops 2022-02-17 00:43:19 -08:00
parent e091287bd6
commit 90ad36d256
3 changed files with 17 additions and 0 deletions

View file

@ -125,6 +125,16 @@ export class BrowserWindow {
this.options.width = windowState.width; this.options.width = windowState.width;
this.options.height = windowState.height; this.options.height = windowState.height;
switch(process.platform) {
default:
break;
case "linux":
this.options.autoHideMenuBar = true
this.options.frame = true
break;
}
// Start the webserver for the browser window to load // Start the webserver for the browser window to load
this.startWebServer(); this.startWebServer();

View file

@ -0,0 +1,6 @@
// Linux
body[platform="linux"] {
#window-controls-container {
display: none;
}
}

View file

@ -3156,4 +3156,5 @@ body[platform='darwin'] {
} }
@import url("less/linux.less");
@import url("less/compact.less"); @import url("less/compact.less");