Support selection foreground in webgl

Part of #3810
This commit is contained in:
Daniel Imms
2022-05-16 09:40:07 -07:00
parent a38e97f1ec
commit c502272373
6 changed files with 18 additions and 0 deletions
@@ -398,6 +398,9 @@ export class WebglRenderer extends Disposable implements IRenderer {
// Apply the selection color if needed
if (this._isCellSelected(x, y)) {
bgOverride = this._colors.selectionOpaque.rgba >> 8 & 0xFFFFFF;
if (this._colors.selectionForeground) {
fgOverride = this._colors.selectionForeground.rgba >> 8 && 0xFFFFFF;
}
}
// Apply decorations on the top layer