Update euphoxide

This commit is contained in:
Joscha 2023-01-20 19:33:52 +01:00
parent 82d6738e49
commit 9324517c56
7 changed files with 57 additions and 77 deletions

View file

@ -33,7 +33,8 @@ fn hsl_to_rgb(h: f32, s: f32, l: f32) -> (u8, u8, u8) {
}
pub fn nick_color(nick: &str) -> (u8, u8, u8) {
let hue = euphoxide::nick_hue(nick) as f32;
// TODO Use nick hue with emoji (lazy init emoji?)
let hue = euphoxide::nick_hue_without_removing_emoji(nick) as f32;
hsl_to_rgb(hue, 1.0, 0.72)
}