Skip to main content

parse_theme_str

Function parse_theme_str 

Source
pub fn parse_theme_str(value: &str) -> Option<Theme>
Expand description

Parses value ("light" or "dark") as a Theme. Any other value — including case variants — is rejected: SHINE_TERMINAL_THEME is a display-only signal (PRD §10), not something to interpret loosely.