added native title bar option, added window control position
This commit is contained in:
parent
8e7bb2fd0b
commit
0abef214cf
6 changed files with 60 additions and 7 deletions
|
@ -322,11 +322,19 @@ export class BrowserWindow {
|
|||
} else {
|
||||
this.options.transparent = true;
|
||||
}
|
||||
this.options.autoHideMenuBar = true
|
||||
if(utils.getStoreValue("visual.nativeTitleBar")) {
|
||||
this.options.titleBarStyle = "visible";
|
||||
this.options.frame = true
|
||||
}
|
||||
break;
|
||||
case "linux":
|
||||
this.options.backgroundColor = "#1E1E1E";
|
||||
this.options.autoHideMenuBar = true
|
||||
this.options.frame = true
|
||||
if(utils.getStoreValue("visual.nativeTitleBar")) {
|
||||
this.options.titleBarStyle = "visible";
|
||||
this.options.frame = true
|
||||
}
|
||||
break;
|
||||
case "darwin":
|
||||
this.options.transparent = true;
|
||||
|
|
|
@ -118,7 +118,9 @@ export class Store {
|
|||
"miniplayer_top_toggle": true,
|
||||
"directives": {
|
||||
"windowLayout": "default"
|
||||
}
|
||||
},
|
||||
"windowControlPosition": 0, // 0 default right
|
||||
"nativeTitleBar": false
|
||||
},
|
||||
"lyrics": {
|
||||
"enable_mxm": false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue