Skip to main content

load_or_dark

Function load_or_dark 

Source
pub fn load_or_dark(name: &str, mode: ColorMode) -> Arc<ResolvedTheme> 
Expand description

Load a theme, falling back to the built-in dark theme on any error.

This is the safe entry point used by the view-model so a corrupt theme never breaks rendering.