Merge pull request #1632 from alec-lefors/main
Add transparency option to linux
This commit is contained in:
commit
3111ede00c
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue