Skip to main content

SystemThemeExt

Trait SystemThemeExt 

Source
pub trait SystemThemeExt {
    // Required method
    fn to_iced_theme(&self) -> (Theme, ResolvedThemeVariant);
}
Expand description

Extension trait for converting a SystemTheme to an iced theme.

Required Methods§

Source

fn to_iced_theme(&self) -> (Theme, ResolvedThemeVariant)

Convert this system theme to an iced iced_core::theme::Theme and its ResolvedThemeVariant.

Returns both the iced theme and the resolved variant, so callers can access per-widget metrics without re-resolving.

Implementors§