mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-22 20:40:08 +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') {
|
||||
options.backgroundColor = '#131d27'
|
||||
}
|
||||
@ -243,7 +247,7 @@ start = () => {
|
||||
app.window.once('ready-to-show', () => {
|
||||
if (process.platform == 'darwin') {
|
||||
app.window.setVibrancy('dark')
|
||||
} else if (process.platform == 'windows') {
|
||||
} else if (process.platform == 'win32' && (configData.appearance || {}).vibrancy) {
|
||||
setWindowVibrancy(true)
|
||||
}
|
||||
app.window.show()
|
||||
|
@ -44,7 +44,7 @@ ngb-tabset.vertical(type='tabs', [activeId]='activeTab')
|
||||
br
|
||||
.btn-group(
|
||||
'[(ngModel)]'='config.store.appearance.vibrancy'
|
||||
'(ngModelChange)'='config.save()'
|
||||
'(ngModelChange)'='config.save(); (hostApp.platform === Platform.Windows && config.requestRestart())'
|
||||
ngbRadioGroup
|
||||
)
|
||||
label.btn.btn-secondary(ngbButtonLabel)
|
||||
|
Loading…
x
Reference in New Issue
Block a user