pub fn theme() -> ThemeExpand description
What: Access the application’s theme palette, loading or caching as needed.
Inputs:
- None.
Output:
- A copy of the currently loaded
Theme.
§Panics
- Panics if the theme store
RwLockis poisoned
Details:
- Lazily initializes a global
RwLock<Theme>usingload_initial_theme. - Subsequent calls reuse the cached theme until
reload_themeupdates it.