|
|
|
@@ -3,7 +3,7 @@
|
|
|
|
|
* @license MIT
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import { BOLD_CLASS, CURSOR_BLINK_CLASS, CURSOR_CLASS, CURSOR_STYLE_BAR_CLASS, CURSOR_STYLE_BLOCK_CLASS, CURSOR_STYLE_UNDERLINE_CLASS, DomRendererRowFactory, ITALIC_CLASS } from 'browser/renderer/dom/DomRendererRowFactory';
|
|
|
|
|
import { BOLD_CLASS, CURSOR_BLINK_CLASS, CURSOR_CLASS, CURSOR_STYLE_BAR_CLASS, CURSOR_STYLE_BLOCK_CLASS, CURSOR_STYLE_UNDERLINE_CLASS, DIM_CLASS, DomRendererRowFactory, ITALIC_CLASS } from 'browser/renderer/dom/DomRendererRowFactory';
|
|
|
|
|
import { INVERTED_DEFAULT_COLOR } from 'browser/renderer/shared/Constants';
|
|
|
|
|
import { createRenderDimensions } from 'browser/renderer/shared/RendererUtils';
|
|
|
|
|
import { IRenderDimensions, IRenderer, IRequestRedrawEvent } from 'browser/renderer/shared/Types';
|
|
|
|
@@ -149,6 +149,10 @@ export class DomRenderer extends Disposable implements IRenderer {
|
|
|
|
|
` font-family: ${this._optionsService.rawOptions.fontFamily};` +
|
|
|
|
|
` font-size: ${this._optionsService.rawOptions.fontSize}px;` +
|
|
|
|
|
`}`;
|
|
|
|
|
styles +=
|
|
|
|
|
`${this._terminalSelector} .${ROW_CONTAINER_CLASS} .xterm-dim {` +
|
|
|
|
|
` color: ${color.multiplyOpacity(colors.foreground, 0.5).css};` +
|
|
|
|
|
`}`;
|
|
|
|
|
// Text styles
|
|
|
|
|
styles +=
|
|
|
|
|
`${this._terminalSelector} span:not(.${BOLD_CLASS}) {` +
|
|
|
|
@@ -224,10 +228,12 @@ export class DomRenderer extends Disposable implements IRenderer {
|
|
|
|
|
for (const [i, c] of colors.ansi.entries()) {
|
|
|
|
|
styles +=
|
|
|
|
|
`${this._terminalSelector} .${FG_CLASS_PREFIX}${i} { color: ${c.css}; }` +
|
|
|
|
|
`${this._terminalSelector} .${FG_CLASS_PREFIX}${i}.${DIM_CLASS} { color: ${color.multiplyOpacity(c, 0.5).css}; }` +
|
|
|
|
|
`${this._terminalSelector} .${BG_CLASS_PREFIX}${i} { background-color: ${c.css}; }`;
|
|
|
|
|
}
|
|
|
|
|
styles +=
|
|
|
|
|
`${this._terminalSelector} .${FG_CLASS_PREFIX}${INVERTED_DEFAULT_COLOR} { color: ${color.opaque(colors.background).css}; }` +
|
|
|
|
|
`${this._terminalSelector} .${FG_CLASS_PREFIX}${INVERTED_DEFAULT_COLOR}.${DIM_CLASS} { color: ${color.multiplyOpacity(color.opaque(colors.background), 0.5).css}; }` +
|
|
|
|
|
`${this._terminalSelector} .${BG_CLASS_PREFIX}${INVERTED_DEFAULT_COLOR} { background-color: ${colors.foreground.css}; }`;
|
|
|
|
|
|
|
|
|
|
this._themeStyleElement.textContent = styles;
|
|
|
|
|