Skip to main content

material_ui_rs/design/style/
float.rs

1use iced_widget::float::{Catalog, 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(|_| Style::default())
10    }
11
12    fn style(&self, class: &Self::Class<'_>) -> Style {
13        class(self)
14    }
15}