mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add backup comparator test harness
This commit is contained in:
+7
-4
@@ -46,14 +46,17 @@ export function getHSL(
|
||||
{
|
||||
hue,
|
||||
saturation,
|
||||
luminance,
|
||||
}: {
|
||||
hue: number;
|
||||
saturation: number;
|
||||
luminance?: number;
|
||||
},
|
||||
adjustedLightness = 0
|
||||
): string {
|
||||
return `hsl(${hue}, ${saturation}%, ${adjustLightnessValue(
|
||||
calculateLightness(hue),
|
||||
adjustedLightness
|
||||
)}%)`;
|
||||
return `hsl(${hue}, ${saturation}%, ${
|
||||
luminance == null
|
||||
? adjustLightnessValue(calculateLightness(hue), adjustedLightness)
|
||||
: luminance * 100
|
||||
}%)`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user