Fix transparent foreground color
This commit is contained in:
@@ -298,7 +298,7 @@ export class TextureAtlas implements ITextureAtlas {
|
|||||||
case Attributes.CM_DEFAULT:
|
case Attributes.CM_DEFAULT:
|
||||||
default:
|
default:
|
||||||
if (inverse) {
|
if (inverse) {
|
||||||
result = this._config.colors.foreground;
|
result = color.opaque(this._config.colors.foreground);
|
||||||
} else {
|
} else {
|
||||||
result = this._config.colors.background;
|
result = this._config.colors.background;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,8 +122,7 @@ export class ThemeService extends Disposable implements IThemeService {
|
|||||||
*/
|
*/
|
||||||
private _setTheme(theme: ITheme = {}): void {
|
private _setTheme(theme: ITheme = {}): void {
|
||||||
const colors = this._colors;
|
const colors = this._colors;
|
||||||
colors.foreground = color.opaque(parseColor(theme.foreground, DEFAULT_FOREGROUND));
|
colors.foreground = parseColor(theme.foreground, DEFAULT_FOREGROUND);
|
||||||
console.warn("xterm.js is not fully support foreground colors with transparent, so it will the foreground colors alpha channel to 255.")
|
|
||||||
colors.background = parseColor(theme.background, DEFAULT_BACKGROUND);
|
colors.background = parseColor(theme.background, DEFAULT_BACKGROUND);
|
||||||
colors.cursor = parseColor(theme.cursor, DEFAULT_CURSOR);
|
colors.cursor = parseColor(theme.cursor, DEFAULT_CURSOR);
|
||||||
colors.cursorAccent = parseColor(theme.cursorAccent, DEFAULT_CURSOR_ACCENT);
|
colors.cursorAccent = parseColor(theme.cursorAccent, DEFAULT_CURSOR_ACCENT);
|
||||||
|
|||||||
Reference in New Issue
Block a user