提交 cd0d1fe2 编写于 作者: D Daniel Imms

Get invert selection working for all base theme types

Fixes #75
上级 9038053f
......@@ -95,11 +95,12 @@ export class TerminalPanel extends Panel {
let css = '';
theme.forEach((color: string, index: number) => {
// TODO: The classes could probably be reduced, it's so long to beat the specificity of the general rule.
let rgba = this.convertHexCssColorToRgba(color, 0.996);
css += `.terminal .xterm-color-${index} { color: ${color}; }` +
`.terminal .xterm-color-${index}::selection { background-color: ${rgba}; }` +
`.terminal .xterm-bg-color-${index} { background-color: ${color}; }` +
`.terminal .xterm-bg-color-${index}::selection { color: ${color}; }`;
css += `.monaco-workbench .integrated-terminal .terminal .xterm-color-${index} { color: ${color}; }` +
`.monaco-workbench .integrated-terminal .terminal .xterm-color-${index}::selection { background-color: ${rgba}; }` +
`.monaco-workbench .integrated-terminal .terminal .xterm-bg-color-${index} { background-color: ${color}; }` +
`.monaco-workbench .integrated-terminal .terminal .xterm-bg-color-${index}::selection { color: ${color}; }`;
});
this.themeStyleElement.innerHTML = css;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册