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