mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-19 02:49:56 +00:00
make vibrancy disabling optional
This commit is contained in:
parent
502f72ec35
commit
df77cc99d9
@ -415,12 +415,12 @@ export class Window {
|
|||||||
this.window.webContents.on('new-window', event => event.preventDefault())
|
this.window.webContents.on('new-window', event => event.preventDefault())
|
||||||
|
|
||||||
ipcMain.on('window-set-disable-vibrancy-while-dragging', (_event, value) => {
|
ipcMain.on('window-set-disable-vibrancy-while-dragging', (_event, value) => {
|
||||||
this.disableVibrancyWhileDragging = value
|
this.disableVibrancyWhileDragging = value && this.configStore.hacks.disableVibrancyWhileDragging
|
||||||
})
|
})
|
||||||
|
|
||||||
let moveEndedTimeout: any = null
|
let moveEndedTimeout: any = null
|
||||||
const onBoundsChange = () => {
|
const onBoundsChange = () => {
|
||||||
if (!this.lastVibrancy?.enabled || !this.disableVibrancyWhileDragging || this.isFluentVibrancy) {
|
if (!this.lastVibrancy?.enabled || !this.disableVibrancyWhileDragging || !this.isFluentVibrancy) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.setVibrancy(false, undefined, false)
|
this.setVibrancy(false, undefined, false)
|
||||||
|
@ -38,4 +38,5 @@ enableExperimentalFeatures: false
|
|||||||
pluginBlacklist: []
|
pluginBlacklist: []
|
||||||
hacks:
|
hacks:
|
||||||
disableGPU: false
|
disableGPU: false
|
||||||
|
disableVibrancyWhileDragging: false
|
||||||
language: null
|
language: null
|
||||||
|
@ -315,3 +315,13 @@ h3.mt-4(translate) Hacks
|
|||||||
[(ngModel)]='config.store.hacks.disableGPU',
|
[(ngModel)]='config.store.hacks.disableGPU',
|
||||||
(ngModelChange)='config.save(); config.requestRestart()'
|
(ngModelChange)='config.save(); config.requestRestart()'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.form-line(*ngIf='hostApp.platform === Platform.Windows')
|
||||||
|
.header
|
||||||
|
.title Disable fluent background while dragging
|
||||||
|
.description Fluent background sometimes causes drag lag
|
||||||
|
|
||||||
|
toggle(
|
||||||
|
[(ngModel)]='config.store.hacks.disableVibrancyWhileDragging',
|
||||||
|
(ngModelChange)='config.save(); config.requestRestart()'
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user