diff options
Diffstat (limited to '')
| -rw-r--r-- | crates/material_theme/src/image.rs | 15 | ||||
| -rw-r--r-- | crates/material_theme/src/lib.rs | 2 | ||||
| -rw-r--r-- | crates/material_theme/src/text_input.rs | 5 |
3 files changed, 1 insertions, 21 deletions
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 { |
