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;

View file

@ -1490,7 +1490,7 @@
</div>
</div>
<div class="md-option-line update-check" v-if="app.platform === 'win32'">
<div class="md-option-line update-check" v-if="app.platform === 'win32' || app.platform === 'linux'">
<div class="md-option-segment">
{{$root.getLz('settings.option.visual.transparent')}}<br>
<small>({{$root.getLz('settings.option.visual.transparent.description')}})</small>