summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d238e78a..bc87b1a3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -373,14 +373,15 @@ pub type Result = std::result::Result<(), Error>;
/// ]
/// }
/// ```
-pub fn run<State, Message>(
+pub fn run<State, Message, Theme>(
title: impl application::Title<State> + 'static,
update: impl application::Update<State, Message> + 'static,
- view: impl for<'a> application::View<'a, State, Message> + 'static,
+ view: impl for<'a> application::View<'a, State, Message, Theme> + 'static,
) -> Result
where
State: Default + 'static,
Message: std::fmt::Debug + Send + 'static,
+ Theme: Default + application::DefaultStyle + 'static,
{
program(title, update, view).run()
}