From 4febea34098f021c78597882def2deeab5451f3f Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 13 May 2025 00:02:29 +0200 Subject: chore: update `iced` --- crates/material_theme/src/image.rs | 15 --------------- crates/material_theme/src/lib.rs | 2 -- crates/material_theme/src/text_input.rs | 5 +---- 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 crates/material_theme/src/image.rs (limited to 'crates/material_theme/src') diff --git a/crates/material_theme/src/image.rs b/crates/material_theme/src/image.rs deleted file mode 100644 index 4251b39..0000000 --- a/crates/material_theme/src/image.rs +++ /dev/null @@ -1,15 +0,0 @@ -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) - } -} diff --git a/crates/material_theme/src/lib.rs b/crates/material_theme/src/lib.rs index b04edf0..e59e1e9 100644 --- a/crates/material_theme/src/lib.rs +++ b/crates/material_theme/src/lib.rs @@ -11,8 +11,6 @@ pub mod combo_box; pub mod container; #[cfg(feature = "dialog")] pub mod dialog; -#[cfg(feature = "image")] -pub mod image; #[cfg(feature = "markdown")] pub mod markdown; pub mod menu; diff --git a/crates/material_theme/src/text_input.rs b/crates/material_theme/src/text_input.rs index ed5e02a..4db220b 100644 --- a/crates/material_theme/src/text_input.rs +++ b/crates/material_theme/src/text_input.rs @@ -36,10 +36,7 @@ pub fn default(theme: &Theme, status: Status) -> Style { match status { Status::Active => active, Status::Hovered => Style { - border: Border { - color: surface.on_surface, - ..active.border - }, + border: active.border.color(surface.on_surface), ..active }, Status::Disabled => Style { -- cgit v1.2.3