Add transparency option to linux
This commit is contained in:
parent
cb3a3053ba
commit
c2c65075bb
2 changed files with 6 additions and 2 deletions
|
@ -428,8 +428,12 @@ export class BrowserWindow {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "linux":
|
case "linux":
|
||||||
this.options.backgroundColor = "#1E1E1E";
|
|
||||||
this.options.autoHideMenuBar = true;
|
this.options.autoHideMenuBar = true;
|
||||||
|
if (!(utils.getStoreValue("visual.transparent") ?? false)) {
|
||||||
|
this.options.backgroundColor = "#1E1E1E";
|
||||||
|
} else {
|
||||||
|
this.options.transparent = true;
|
||||||
|
}
|
||||||
if (utils.getStoreValue("visual.nativeTitleBar")) {
|
if (utils.getStoreValue("visual.nativeTitleBar")) {
|
||||||
this.options.titleBarStyle = "visible";
|
this.options.titleBarStyle = "visible";
|
||||||
this.options.frame = true;
|
this.options.frame = true;
|
||||||
|
|
|
@ -1490,7 +1490,7 @@
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="md-option-segment">
|
||||||
{{$root.getLz('settings.option.visual.transparent')}}<br>
|
{{$root.getLz('settings.option.visual.transparent')}}<br>
|
||||||
<small>({{$root.getLz('settings.option.visual.transparent.description')}})</small>
|
<small>({{$root.getLz('settings.option.visual.transparent.description')}})</small>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue