Merge pull request #1632 from alec-lefors/main

Add transparency option to linux
This commit is contained in:
Core 2023-01-12 12:57:48 +00:00 committed by GitHub
commit 3111ede00c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>