feat: replace HSLuv colors with OKLCh

This commit is contained in:
link2xt
2025-08-25 18:20:52 +00:00
committed by l
parent 776408c564
commit aaa83a8f52
5 changed files with 52 additions and 33 deletions

View File

@@ -759,7 +759,7 @@ async fn test_contact_get_color() -> Result<()> {
let t = TestContext::new().await;
let contact_id = Contact::create(&t, "name", "name@example.net").await?;
let color1 = Contact::get_by_id(&t, contact_id).await?.get_color();
assert_eq!(color1, 0xA739FF);
assert_eq!(color1, 0x4947dc);
let t = TestContext::new().await;
let contact_id = Contact::create(&t, "prename name", "name@example.net").await?;