Expand description
ThemeManager — runtime theme switching with observer notifications.
use oxiui_theme::{CooljapanTheme, dark, light};
use oxiui_theme::manager::ThemeManager;
use std::sync::{Arc, Mutex};
// Wrap the initial theme (must be a concrete Clone-able type).
let initial = oxiui_theme::cooljapan_default();Structs§
- Theme
Manager - Runtime theme manager with observer notifications.
Type Aliases§
- Listener
Id - A unique handle returned by
ThemeManager::subscribe. - Theme
Listener - A callback invoked whenever the active theme changes.