Function deltachat::color::str_to_color

source ยท
pub fn str_to_color(s: &str) -> u32
Expand description

Converts an identifier to RGB color.

Saturation is set to maximum (100.0) to make colors distinguishable, and lightness is set to half (50.0) to make colors suitable both for light and dark theme.