ltk::theme::active

Function set_active_document

Source
pub fn set_active_document(doc: ThemeDocument)
Expand description

Install doc as the active theme. The current mode is preserved (defaulting to ThemeMode::Light if nothing was set yet). Also clears the fallback flag — an explicit install supersedes the embedded B/W document and the warning banner stops painting from the next frame on.