mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
color: private rgba, hsla
This commit is contained in:
@@ -1031,7 +1031,7 @@ export class Color {
|
||||
if (!alpha) {
|
||||
alpha = 1;
|
||||
}
|
||||
const color = CommonColor.fromHSLA(new HSLA(hue, saturation, luminosity, alpha)).rgba;
|
||||
const color = new CommonColor(new HSLA(hue, saturation, luminosity, alpha)).rgba;
|
||||
return new Color(color.r, color.g, color.b, color.a / 255);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user