added native title bar option, added window control position

This commit is contained in:
booploops 2022-04-01 00:07:01 -07:00
parent 8e7bb2fd0b
commit 0abef214cf
6 changed files with 60 additions and 7 deletions

View file

@ -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;

View file

@ -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,