mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
exclude powerline char range from contrast demands (#3740)
This commit is contained in:
@@ -428,6 +428,11 @@ export abstract class BaseRenderLayer implements IRenderLayer {
|
||||
}
|
||||
|
||||
private _getContrastColor(cell: CellData): IColor | undefined {
|
||||
const codepoint = cell.getCode();
|
||||
if (57344 <= codepoint && codepoint <= 63743) {
|
||||
// powerline chars #3739
|
||||
return undefined;
|
||||
}
|
||||
if (this._optionsService.rawOptions.minimumContrastRatio === 1) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user