File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ async fn test_chat_info() {
3434 "archived": false,
3535 "param": "",
3636 "is_sending_locations": false,
37- "color": 29377 ,
37+ "color": 29381 ,
3838 "profile_image": {},
3939 "draft": "",
4040 "is_muted": false,
@@ -1933,7 +1933,7 @@ async fn test_chat_get_color() -> Result<()> {
19331933 let t = TestContext :: new ( ) . await ;
19341934 let chat_id = create_group_ex ( & t, None , "a chat" ) . await ?;
19351935 let color1 = Chat :: load_from_db ( & t, chat_id) . await ?. get_color ( & t) . await ?;
1936- assert_eq ! ( color1, 0x613dd7 ) ;
1936+ assert_eq ! ( color1, 0x6239dc ) ;
19371937
19381938 // upper-/lowercase makes a difference for the colors, these are different groups
19391939 // (in contrast to email addresses, where upper-/lowercase is ignored in practise)
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn rgb_to_u32(rgb: Rgb<u8>) -> u32 {
2828/// Lightness is set to half (0.5) to make colors suitable both for light and dark theme.
2929pub fn str_to_color ( s : & str ) -> u32 {
3030 let lightness = 0.5 ;
31- let chroma = 0.22 ;
31+ let chroma = 0.23 ;
3232 let angle = str_to_angle ( s) ;
3333 let oklch = Oklch :: new ( lightness, chroma, angle) ;
3434 let rgb = oklch. to_rgb ( TransferFunction :: Srgb ) ;
Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ async fn test_contact_get_color() -> Result<()> {
759759 let t = TestContext :: new ( ) . await ;
760760 let contact_id = Contact :: create ( & t, "name" , "name@example.net" ) . await ?;
761761 let color1 = Contact :: get_by_id ( & t, contact_id) . await ?. get_color ( ) ;
762- assert_eq ! ( color1, 0x4947dc ) ;
762+ assert_eq ! ( color1, 0x4844e2 ) ;
763763
764764 let t = TestContext :: new ( ) . await ;
765765 let contact_id = Contact :: create ( & t, "prename name" , "name@example.net" ) . await ?;
You can’t perform that action at this time.
0 commit comments