Skip to main content

role_from_accent

Function role_from_accent 

Source
pub fn role_from_accent(accent: Option<u8>) -> Role
Expand description

The picker’s accent pick — None = plain, Some(0..=7) = palette index — onto the 9-variant Role, where Accent0 is the meaningful plain default. Indices past the palette cannot come from the picker; they saturate to the last accent rather than silently reading as plain.