summaryrefslogtreecommitdiff
path: root/crates/material_theme/src/image.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-28 10:56:49 +0200
committerpml68 <contact@pml68.dev>2025-04-28 10:56:49 +0200
commitdac7e82e0bff128097653fe05829b2d576fcdb2f (patch)
tree6f36736e79eecd6904933c6876af1df58e6b605b /crates/material_theme/src/image.rs
parentfeat(material_theme): implement `image::Catalog` (under feature flag) (diff)
downloadiced-builder-dac7e82e0bff128097653fe05829b2d576fcdb2f.tar.gz
refactor(material_theme)!: make `Theme` an enum with `Custom` variant
Diffstat (limited to 'crates/material_theme/src/image.rs')
-rw-r--r--crates/material_theme/src/image.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/material_theme/src/image.rs b/crates/material_theme/src/image.rs
index de5942a..4251b39 100644
--- a/crates/material_theme/src/image.rs
+++ b/crates/material_theme/src/image.rs
@@ -1,21 +1,15 @@
-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)
+ Box::new(|_theme| Style::default())
}
fn style(&self, class: &Self::Class<'_>) -> Style {
class(self)
}
}
-
-pub fn default(_theme: &Theme) -> Style {
- Style::default()
-}