mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-23 21:09:52 +00:00
enable transparency when vibrancy is enabled on Windows
This commit is contained in:
parent
594597e93d
commit
a10c6e6251
@ -233,6 +233,10 @@ start = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.platform == 'win32' && (configData.appearance || {}).vibrancy) {
|
||||||
|
options.transparent = true
|
||||||
|
}
|
||||||
|
|
||||||
if (process.platform == 'linux') {
|
if (process.platform == 'linux') {
|
||||||
options.backgroundColor = '#131d27'
|
options.backgroundColor = '#131d27'
|
||||||
}
|
}
|
||||||
@ -243,7 +247,7 @@ start = () => {
|
|||||||
app.window.once('ready-to-show', () => {
|
app.window.once('ready-to-show', () => {
|
||||||
if (process.platform == 'darwin') {
|
if (process.platform == 'darwin') {
|
||||||
app.window.setVibrancy('dark')
|
app.window.setVibrancy('dark')
|
||||||
} else if (process.platform == 'windows') {
|
} else if (process.platform == 'win32' && (configData.appearance || {}).vibrancy) {
|
||||||
setWindowVibrancy(true)
|
setWindowVibrancy(true)
|
||||||
}
|
}
|
||||||
app.window.show()
|
app.window.show()
|
||||||
|
@ -44,7 +44,7 @@ ngb-tabset.vertical(type='tabs', [activeId]='activeTab')
|
|||||||
br
|
br
|
||||||
.btn-group(
|
.btn-group(
|
||||||
'[(ngModel)]'='config.store.appearance.vibrancy'
|
'[(ngModel)]'='config.store.appearance.vibrancy'
|
||||||
'(ngModelChange)'='config.save()'
|
'(ngModelChange)'='config.save(); (hostApp.platform === Platform.Windows && config.requestRestart())'
|
||||||
ngbRadioGroup
|
ngbRadioGroup
|
||||||
)
|
)
|
||||||
label.btn.btn-secondary(ngbButtonLabel)
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user