#[repr(C)]pub struct ColorRoles {Show 28 fields
pub background: Option<Rgb>,
pub surface: Option<Rgb>,
pub surface_bar: Option<Rgb>,
pub surface_muted: Option<Rgb>,
pub on_surface: Option<Rgb>,
pub on_surface_variant: Option<Rgb>,
pub outline: Option<Rgb>,
pub outline_variant: Option<Rgb>,
pub primary: Option<Rgb>,
pub on_primary: Option<Rgb>,
pub primary_text: Option<Rgb>,
pub secondary_container: Option<Rgb>,
pub on_secondary_container: Option<Rgb>,
pub fab: Option<Rgb>,
pub on_fab: Option<Rgb>,
pub success: Option<TonePair>,
pub warning: Option<TonePair>,
pub danger: Option<TonePair>,
pub info: Option<TonePair>,
pub scrim: Option<Rgba>,
pub selection: Option<Rgb>,
pub error: Option<Rgb>,
pub error_fill: Option<Rgb>,
pub on_error_fill: Option<Rgb>,
pub outlined_fill: Option<Rgba>,
pub outlined_border: Option<Rgba>,
pub segment_selected: Option<Rgb>,
pub on_segment_selected: Option<Rgb>,
}Expand description
Colour roles; every one optional (None = the shell’s current colour for that role).
Fields§
§background: Option<Rgb>Page background.
surface: Option<Rgb>Cards, sheets, dialogs.
surface_bar: Option<Rgb>Top bar, bottom navigation, navigation rail.
surface_muted: Option<Rgb>Chips, input fills, segmented track, Filled cards, skeletons, the Neutral tone.
on_surface: Option<Rgb>Text and icons.
on_surface_variant: Option<Rgb>Secondary text (captions, unselected tabs).
outline: Option<Rgb>Field and outlined-button borders.
outline_variant: Option<Rgb>Hairlines and dividers.
primary: Option<Rgb>Filled buttons, selected calendar day, toggles (unless selection is set).
on_primary: Option<Rgb>§primary_text: Option<Rgb>Primary-coloured text/icons on the background (text buttons, selected tab, back button).
secondary_container: Option<Rgb>Tonal buttons, selected segment/chip, navigation indicator.
on_secondary_container: Option<Rgb>§fab: Option<Rgb>§on_fab: Option<Rgb>§success: Option<TonePair>One container/on-container pair per Tone. Filled toned buttons swap the pair (Danger: unless
error_fill is set).
warning: Option<TonePair>§danger: Option<TonePair>§info: Option<TonePair>§scrim: Option<Rgba>Sheet and dialog scrim.
selection: Option<Rgb>Focus and selection marks: the focused field’s border, label and cursor, checked toggles and
checkboxes, sliders, progress. Unset: the shell’s current colour (primary on most shells).
error: Option<Rgb>Error text and the invalid field’s border; outlined and text Danger buttons. Unset: danger’s
on-container colour, as before.
error_fill: Option<Rgb>A filled Danger button’s background. Unset: the danger pair, swapped, as before.
on_error_fill: Option<Rgb>A filled Danger button’s text. Unset: as before.
outlined_fill: Option<Rgba>An outlined button’s background (alpha allowed: a soft tint). Unset: transparent, as before.
outlined_border: Option<Rgba>An outlined button’s border (alpha allowed). Unset: outline, as before.
segment_selected: Option<Rgb>The selected segment’s fill, apart from chips and tonal buttons. Unset: secondary_container,
as before.
on_segment_selected: Option<Rgb>The selected segment’s text and check mark. Unset: on_secondary_container, as before.