fn parse_color(value: Option<&Value>, field: &str) -> Option<(u8, u8, u8)>Expand description
Parses an RGB color from a TOML configuration value.
The value parameter provides an optional TOML value containing a color object. The field parameter specifies which color field to parse from the configuration. Returns the RGB color values as a tuple if parsing succeeds, or None if the color value is missing or invalid.