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