From 3ccd3fd956d8e8cad86e33ae184a35b5d255e953 Mon Sep 17 00:00:00 2001 From: madanagopaltcomcast <35588028+madanagopaltcomcast@users.noreply.github.com> Date: Fri, 17 Jan 2020 15:15:16 +0530 Subject: [PATCH] update text color before rendering --- src/tree/Element.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tree/Element.mjs b/src/tree/Element.mjs index a4b1cccf..61c39a5b 100644 --- a/src/tree/Element.mjs +++ b/src/tree/Element.mjs @@ -1532,6 +1532,10 @@ export default class Element { this.colorBl = v; this.colorBr = v; } + if (Utils.isSpark && (this.texture && (this.texture instanceof TextTexture))) + { + this.texture.textColor = this.color; + } } get colorTop() { @@ -1707,6 +1711,10 @@ export default class Element { this.texture.w = this.w; this.texture.h = this.h; } + if (Utils.isSpark && this.color) + { + this.texture.textColor = this.color; + } } return this.texture; }