Skip to main content

set_active_theme

Function set_active_theme 

Source
pub fn set_active_theme(theme_id: &str) -> Result<()>
Expand description

Activate a built-in theme by identifier.

A committed selection supersedes any temporary palette preview. Leaving a preview in place here would make active_styles return stale preview colors after the caller has changed the committed theme.