blob: de5942aadc5c08e8a76479ea263a9101d841eddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use iced_widget::core::{Background, Border, Color, border};
use iced_widget::image::{Catalog, Style, StyleFn};
use super::Theme;
use crate::utils::{elevation, shadow_from_elevation};
impl Catalog for Theme {
type Class<'a> = StyleFn<'a, Self>;
fn default<'a>() -> Self::Class<'a> {
Box::new(default)
}
fn style(&self, class: &Self::Class<'_>) -> Style {
class(self)
}
}
pub fn default(_theme: &Theme) -> Style {
Style::default()
}
|