Rename ITheme.selection to selectionBackground

This makes it consistent with selectionForeground and other theme keys and
as a result will make the API easier to work with, especially when inactive
selection is done (#3803)
This commit is contained in:
Daniel Imms
2022-07-29 10:34:27 -07:00
parent df14ce49d7
commit 9cb25fbf06
12 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ export class DomRenderer extends Disposable implements IRenderer {
`}` +
`${this._terminalSelector} .${SELECTION_CLASS} div {` +
` position: absolute;` +
` background-color: ${this._colors.selectionOpaque.css};` +
` background-color: ${this._colors.selectionBackgroundOpaque.css};` +
`}`;
// Colors
this._colors.ansi.forEach((c, i) => {
@@ -218,7 +218,7 @@ export class DomRendererRowFactory {
// If in the selection, force the element to be above the selection to improve contrast and
// support opaque selections
if (isInSelection) {
bgOverride = this._colors.selectionOpaque;
bgOverride = this._colors.selectionBackgroundOpaque;
isTop = true;
}