From c4b4207f4768c7e254ff0a6bf95c4d76ea08ce48 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 17 Mar 2024 14:41:34 +0100 Subject: Support custom themes in `Program` API --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') 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( +pub fn run( title: impl application::Title + 'static, update: impl application::Update + '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() } -- cgit