summaryrefslogtreecommitdiffstats
path: root/src/pure
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pure.rs4
-rw-r--r--src/pure/application.rs8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/pure.rs b/src/pure.rs
index 1efacdf4..ca805ecc 100644
--- a/src/pure.rs
+++ b/src/pure.rs
@@ -108,5 +108,5 @@ pub use iced_pure::Widget;
pub use iced_pure::{Pure, State};
/// A generic, pure [`Widget`].
-pub type Element<'a, Message, Theme = crate::Theme> =
- iced_pure::Element<'a, Message, crate::Renderer<Theme>>;
+pub type Element<'a, Message, Renderer = crate::Renderer<crate::Theme>> =
+ iced_pure::Element<'a, Message, Renderer>;
diff --git a/src/pure/application.rs b/src/pure/application.rs
index af9b078b..396854ad 100644
--- a/src/pure/application.rs
+++ b/src/pure/application.rs
@@ -60,7 +60,9 @@ pub trait Application: Sized {
/// Returns the widgets to display in the [`Application`].
///
/// These widgets can produce __messages__ based on user interaction.
- fn view(&self) -> pure::Element<'_, Self::Message, Self::Theme>;
+ fn view(
+ &self,
+ ) -> pure::Element<'_, Self::Message, crate::Renderer<Self::Theme>>;
/// Returns the current [`Theme`] of the [`Application`].
fn theme(&self) -> Self::Theme {
@@ -167,7 +169,9 @@ where
A::subscription(&self.application)
}
- fn view(&mut self) -> crate::Element<'_, Self::Message, Self::Theme> {
+ fn view(
+ &mut self,
+ ) -> crate::Element<'_, Self::Message, crate::Renderer<Self::Theme>> {
let content = A::view(&self.application);
Pure::new(&mut self.state, content).into()