register_themes

Macro register_themes 

Source
macro_rules! register_themes {
    (
        $(
            $module:ident => {
                name: $name:literal,
                display: $display:literal,
                dark: $is_dark:expr
            }
        ),* $(,)?
    ) => { ... };
}
Expand description

Macro to register all themes with their metadata. Generates mod declarations, THEMES array, and get_theme function.

§Example

register_themes! {
    dracula => { name: "dracula", display: "Dracula", dark: true },
    one => { name: "one", display: "One", dark: true },
}