mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-15 21:01:05 +01:00
Merge pull request #82055 from NeeEoo/NeeEoo-patch-1
Fix #81890 - Fix HSLA to RGBA in color picker
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user