Skip to main content

default_theme

Function default_theme 

Source
pub fn default_theme() -> Option<Theme>
Expand description

Read the seeded default, if any (None when set_default_theme has never been called). Non-destructive — a shell may need it again when reverting an app override via clear_app_theme, to re-seed the base (see the module docs’ Non-destructive read section); unlike crate::font_registry::FontRegistryWatcher::poll, repeated calls with no intervening set_default_theme all return the same value rather than draining the slot.