mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
Color Picker: add Oklab and Oklch color formats (#38052)
* Resolve Resources.resw conflict * Update CIE LCh chroma practical upper bound according to CSS spec * Add review suggestions * Add WIP tests (lch and oklch do not pass yet) * Deduplicate Lab to LCh converter method * Update expect.txt * Fix liberty test color * Reimplement oklab with better precision * Remove CIE LCh * Add tooltip for color param descriptions * Update spell-check expect.txt with new words * Remove 'cielch' and 'lch' from expect.txt --------- Co-authored-by: Gordon Lam (SH) <yeelam@microsoft.com> Co-authored-by: Clint Rutkas <clint@rutkas.com> Co-authored-by: Shawn Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
This commit is contained in:
@@ -80,5 +80,20 @@ namespace Microsoft.PowerToys.Settings.UI.Library.Enumerations
|
||||
/// Color presentation as an 8-digit hexadecimal integer (0xFFFFFFFF)
|
||||
/// </summary>
|
||||
HexInteger = 13,
|
||||
|
||||
/// <summary>
|
||||
/// Color representation as CIELCh color space (L[0..100], C[0..230], h[0°..360°])
|
||||
/// </summary>
|
||||
CIELCh = 14,
|
||||
|
||||
/// <summary>
|
||||
/// Color representation as Oklab color space (L[0..1], a[-0.5..0.5], b[-0.5..0.5])
|
||||
/// </summary>
|
||||
Oklab = 15,
|
||||
|
||||
/// <summary>
|
||||
/// Color representation as Oklch color space (L[0..1], C[0..0.5], h[0°..360°])
|
||||
/// </summary>
|
||||
Oklch = 16,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user