enables native linux chrome
This commit is contained in:
parent
e091287bd6
commit
90ad36d256
3 changed files with 17 additions and 0 deletions
|
@ -125,6 +125,16 @@ export class BrowserWindow {
|
|||
this.options.width = windowState.width;
|
||||
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
|
||||
|
||||
this.startWebServer();
|
||||
|
|
6
src/renderer/less/linux.less
Normal file
6
src/renderer/less/linux.less
Normal file
|
@ -0,0 +1,6 @@
|
|||
// Linux
|
||||
body[platform="linux"] {
|
||||
#window-controls-container {
|
||||
display: none;
|
||||
}
|
||||
}
|
|
@ -3156,4 +3156,5 @@ body[platform='darwin'] {
|
|||
}
|
||||
|
||||
|
||||
@import url("less/linux.less");
|
||||
@import url("less/compact.less");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue