mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-21 11:59:53 +00:00
added minimum contrast ratio setting
This commit is contained in:
parent
96b3a40bfb
commit
1171330451
@ -119,6 +119,18 @@ h3.mb-3(translate) Appearance
|
|||||||
(ngModelChange)='config.save()',
|
(ngModelChange)='config.save()',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title(translate) Minimum contrast ratio
|
||||||
|
input.form-control(
|
||||||
|
type='number',
|
||||||
|
min='1',
|
||||||
|
max='21',
|
||||||
|
step='0.5',
|
||||||
|
[(ngModel)]='config.store.terminal.minimumContrastRatio',
|
||||||
|
(ngModelChange)='config.save()'
|
||||||
|
)
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title(translate) Fallback font
|
.title(translate) Fallback font
|
||||||
|
@ -69,6 +69,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
scrollbackLines: 25000,
|
scrollbackLines: 25000,
|
||||||
drawBoldTextInBrightColors: true,
|
drawBoldTextInBrightColors: true,
|
||||||
sixel: true,
|
sixel: true,
|
||||||
|
minimumContrastRatio: 4,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,18 +17,3 @@
|
|||||||
right: 1px;
|
right: 1px;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xterm-find-result-decoration {
|
|
||||||
box-sizing: content-box;
|
|
||||||
|
|
||||||
border-radius: 3px;
|
|
||||||
padding: 2px;
|
|
||||||
margin: -2px;
|
|
||||||
outline: 2px solid yellow;
|
|
||||||
backdrop-filter: contrast(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.xterm-find-active-result-decoration {
|
|
||||||
backdrop-filter: contrast(4);
|
|
||||||
outline-width: 2px !important;
|
|
||||||
}
|
|
||||||
|
@ -378,6 +378,7 @@ export class XTermFrontend extends Frontend {
|
|||||||
this.xterm.options.drawBoldTextInBrightColors = config.terminal.drawBoldTextInBrightColors
|
this.xterm.options.drawBoldTextInBrightColors = config.terminal.drawBoldTextInBrightColors
|
||||||
this.xterm.options.fontWeight = config.terminal.fontWeight
|
this.xterm.options.fontWeight = config.terminal.fontWeight
|
||||||
this.xterm.options.fontWeightBold = config.terminal.fontWeightBold
|
this.xterm.options.fontWeightBold = config.terminal.fontWeightBold
|
||||||
|
this.xterm.options.minimumContrastRatio = config.terminal.minimumContrastRatio
|
||||||
this.configuredFontSize = config.terminal.fontSize
|
this.configuredFontSize = config.terminal.fontSize
|
||||||
this.configuredLinePadding = config.terminal.linePadding
|
this.configuredLinePadding = config.terminal.linePadding
|
||||||
this.setFontSize()
|
this.setFontSize()
|
||||||
@ -417,11 +418,12 @@ export class XTermFrontend extends Frontend {
|
|||||||
return {
|
return {
|
||||||
...searchOptions,
|
...searchOptions,
|
||||||
decorations: {
|
decorations: {
|
||||||
matchOverviewRuler: '#cccc00',
|
matchOverviewRuler: '#888',
|
||||||
activeMatchColorOverviewRuler: '#ffff00',
|
activeMatchColorOverviewRuler: '#ffff00',
|
||||||
matchBorder: '#cc0',
|
matchBorder: '#888',
|
||||||
|
matchBackground: '#888',
|
||||||
activeMatchBorder: '#ff0',
|
activeMatchBorder: '#ff0',
|
||||||
activeMatchBackground: 'rgba(255, 255, 0, 0.125)',
|
activeMatchBackground: '#ff0',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user