mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-01 15:06:27 +08:00
fixed visual bell (fixes #419)
This commit is contained in:
parent
e403a423b7
commit
62bf681598
@ -8,6 +8,7 @@ export class HTermFrontend extends Frontend {
|
||||
private initialized = false
|
||||
private configuredFontSize = 0
|
||||
private configuredLinePadding = 0
|
||||
private configuredBackgroundColor = 'transparent'
|
||||
private zoom = 0
|
||||
|
||||
attach (host: HTMLElement) {
|
||||
@ -87,6 +88,8 @@ export class HTermFrontend extends Frontend {
|
||||
preferenceManager.set('background-color', 'transparent')
|
||||
}
|
||||
|
||||
this.configuredBackgroundColor = preferenceManager.get('background-color')
|
||||
|
||||
if (config.terminal.colorScheme.colors) {
|
||||
preferenceManager.set(
|
||||
'color-palette-overrides',
|
||||
@ -134,10 +137,9 @@ export class HTermFrontend extends Frontend {
|
||||
}
|
||||
|
||||
visualBell (): void {
|
||||
const color = preferenceManager.get('background-color')
|
||||
preferenceManager.set('background-color', 'rgba(128,128,128,.25)')
|
||||
setTimeout(() => {
|
||||
preferenceManager.set('background-color', color)
|
||||
preferenceManager.set('background-color', this.configuredBackgroundColor)
|
||||
}, 125)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user