Function backend::service::application_settings::hex_to_rgb
source · pub fn hex_to_rgb(hex: &str) -> Result<(u8, u8, u8), ServiceError>
Expand description
Convert a hex color code to RGB. Hex code must be 6 characters long (case-insensitive).
Errors
If the hex code is not 6 characters long. If the hex code is not valid.