ltk::theme::accessors

Function palette

Source
pub fn palette() -> Palette
Expand description

The eight canonical palette slots of the active mode projected as a Palette struct. This is a one-call shortcut equivalent to Palette::from_slots(&active_document().mode(active_mode()).slots), covering the common case where a widget needs text_primary / surface / accent / etc. without picking specific slot ids.