Merge pull request #82055 from NeeEoo/NeeEoo-patch-1

Fix #81890 - Fix HSLA to RGBA in color picker
This commit is contained in:
Peng Lyu
2019-10-23 11:42:25 -07:00
committed by GitHub
@@ -354,7 +354,7 @@ export class ModesContentHoverWidget extends ContentHoverWidget {
containColorPicker = true;
const { red, green, blue, alpha } = msg.color;
const rgba = new RGBA(red * 255, green * 255, blue * 255, alpha);
const rgba = new RGBA(Math.round(red * 255), Math.round(green * 255), Math.round(blue * 255), alpha);
const color = new Color(rgba);
if (!this._editor.hasModel()) {