diff --git a/src/chat/chat_tests.rs b/src/chat/chat_tests.rs index 2fda9eef4..216c71efd 100644 --- a/src/chat/chat_tests.rs +++ b/src/chat/chat_tests.rs @@ -34,7 +34,7 @@ async fn test_chat_info() { "archived": false, "param": "", "is_sending_locations": false, - "color": 29377, + "color": 29381, "profile_image": {}, "draft": "", "is_muted": false, @@ -1933,7 +1933,7 @@ async fn test_chat_get_color() -> Result<()> { let t = TestContext::new().await; let chat_id = create_group_ex(&t, None, "a chat").await?; let color1 = Chat::load_from_db(&t, chat_id).await?.get_color(&t).await?; - assert_eq!(color1, 0x613dd7); + assert_eq!(color1, 0x6239dc); // upper-/lowercase makes a difference for the colors, these are different groups // (in contrast to email addresses, where upper-/lowercase is ignored in practise) diff --git a/src/color.rs b/src/color.rs index d211a4261..a84c59f46 100644 --- a/src/color.rs +++ b/src/color.rs @@ -28,7 +28,7 @@ fn rgb_to_u32(rgb: Rgb) -> u32 { /// Lightness is set to half (0.5) to make colors suitable both for light and dark theme. pub fn str_to_color(s: &str) -> u32 { let lightness = 0.5; - let chroma = 0.22; + let chroma = 0.23; let angle = str_to_angle(s); let oklch = Oklch::new(lightness, chroma, angle); let rgb = oklch.to_rgb(TransferFunction::Srgb); diff --git a/src/contact/contact_tests.rs b/src/contact/contact_tests.rs index 646956539..8bf08126e 100644 --- a/src/contact/contact_tests.rs +++ b/src/contact/contact_tests.rs @@ -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, 0x4947dc); + assert_eq!(color1, 0x4844e2); let t = TestContext::new().await; let contact_id = Contact::create(&t, "prename name", "name@example.net").await?;