summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--material_theme/src/lib.rs5
-rw-r--r--theme_test/src/main.rs7
2 files changed, 8 insertions, 4 deletions
diff --git a/material_theme/src/lib.rs b/material_theme/src/lib.rs
index a4eea24..ba9d478 100644
--- a/material_theme/src/lib.rs
+++ b/material_theme/src/lib.rs
@@ -69,6 +69,11 @@ impl Base for Theme {
text_color: self.colorscheme.surface.on_surface,
}
}
+
+ fn palette(&self) -> Option<iced_widget::theme::Palette> {
+ // TODO: create a Palette
+ None
+ }
}
#[cfg(feature = "animate")]
diff --git a/theme_test/src/main.rs b/theme_test/src/main.rs
index c4735be..26358c8 100644
--- a/theme_test/src/main.rs
+++ b/theme_test/src/main.rs
@@ -12,11 +12,10 @@ use material_theme::container::{
};
use material_theme::text::surface_variant;
-fn main() {
- iced::application("Theme Test", (), view)
- .theme(|_| material_theme::DARK.clone())
+fn main() -> iced::Result {
+ iced::application(|| {}, (), view)
+ .theme(|_| material_theme::LIGHT.clone())
.run()
- .unwrap();
}
#[derive(Debug, Clone)]