ltk::theme::accessors

Function color_or

Source
pub fn color_or(id: &str, fallback: Color) -> Color
Expand description

Like color but returns fallback when the slot is missing. The typical pattern for widgets that must always paint something.