pysepal.solara.theme.resolve_theme_state#
- pysepal.solara.theme.resolve_theme_state(theme_state=None)[source]#
Return a usable ThemeState without ever raising.
Precedence: an explicit
theme_state> the current session’s theme state > a process-local fallback. Unlikeget_current_theme_state(), an active session that is missing its theme component degrades to the fallback instead of raising, so callers such asNotificationProvidercannot crash a misconfigured app.- Parameters:
theme_state (ThemeState | None)
- Return type: