Issue #332 : always use lowercase hexstring format for colors

This commit is contained in:
jdescottes
2015-11-27 22:58:11 +01:00
parent 7fea616f0f
commit 82510314a5
6 changed files with 11 additions and 9 deletions

View File

@@ -71,10 +71,10 @@
};
ns.ColorsList.prototype.onColorUpdated_ = function (color) {
var rgbColor = color.toRgbString();
this.colorPreviewEl.style.background = rgbColor;
var strColor = color.toHexString();
this.colorPreviewEl.style.background = strColor;
if (this.palette) {
this.palette.set(this.selectedIndex, rgbColor);
this.palette.set(this.selectedIndex, strColor);
this.refreshColorElement_(this.selectedIndex);
}
};