Skip to main content

material_ui_rs/design/style/
svg.rs

1use iced_widget::svg::{Catalog, Status, Style, StyleFn};
2
3use crate::Theme;
4
5impl Catalog for Theme {
6    type Class<'a> = StyleFn<'a, Self>;
7
8    fn default<'a>() -> Self::Class<'a> {
9        Box::new(|_theme, _status| Style::default())
10    }
11
12    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style {
13        class(self, status)
14    }
15}