Add transparency option to linux

This commit is contained in:
Alec LeFors 2023-01-10 19:16:30 -06:00
parent cb3a3053ba
commit c2c65075bb
2 changed files with 6 additions and 2 deletions

View file

@ -428,8 +428,12 @@ export class BrowserWindow {
}
break;
case "linux":
this.options.backgroundColor = "#1E1E1E";
this.options.autoHideMenuBar = true;
if (!(utils.getStoreValue("visual.transparent") ?? false)) {
this.options.backgroundColor = "#1E1E1E";
} else {
this.options.transparent = true;
}
if (utils.getStoreValue("visual.nativeTitleBar")) {
this.options.titleBarStyle = "visible";
this.options.frame = true;