Set theme in ctor

This commit is contained in:
Daniel Imms
2018-11-22 10:57:45 -08:00
parent 5c1e5a1787
commit 42eda149c7
+3
View File
@@ -50,6 +50,9 @@ export class WebglRenderer extends EventEmitter implements IRenderer {
super();
const allowTransparency = this._terminal.options.allowTransparency;
this.colorManager = new ColorManager(document, allowTransparency);
if (theme) {
this.colorManager.setTheme(theme);
}
this._renderLayers = [
new LinkRenderLayer(this._terminal.screenElement, 2, this.colorManager.colors, this._terminal),