summaryrefslogtreecommitdiff
path: root/crates/material_theme/src/image.rs
blob: 4251b392ef4824066f5f751268a705ef684262a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use iced_widget::image::{Catalog, Style, StyleFn};

use super::Theme;

impl Catalog for Theme {
    type Class<'a> = StyleFn<'a, Self>;

    fn default<'a>() -> Self::Class<'a> {
        Box::new(|_theme| Style::default())
    }

    fn style(&self, class: &Self::Class<'_>) -> Style {
        class(self)
    }
}