提交 aa2b2b6f 编写于 作者: M Michel Kaporin

Update header when next color mode selected.

上级 35b085f8
......@@ -138,9 +138,11 @@ export class ColorPickerModel {
if (isAdvancedFormatter(formatter)) {
this._transparentFormatter = formatter.transparentFormatter;
this._opaqueFormatter = formatter.opaqueFormatter;
this.selectedColorString = this._opacity === 1 ? this._opaqueFormatter.toString(this._color) : this._transparentFormatter.toString(this._color);
} else if (!this._transparentFormatter || this._opacity === 1) {
this._transparentFormatter = null;
this._opaqueFormatter = formatter;
this.selectedColorString = this._opaqueFormatter.toString(this._color);
} else {
this.nextColorMode();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册