Skip to main content

Module manager

Module manager 

Source
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§

ThemeManager
Runtime theme manager with observer notifications.

Type Aliases§

ListenerId
A unique handle returned by ThemeManager::subscribe.
ThemeListener
A callback invoked whenever the active theme changes.