aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-05-02 23:31:22 +0200
committerpml68 <contact@pml68.dev>2025-05-02 23:31:22 +0200
commite468748e2238595594ad2ac61f5164d011a05aea (patch)
tree4e56d060e9875ca76459a59a1999990eb142135d
parentfeat: make `Dialog` available from the crate's root (diff)
downloadiced_dialog-e468748e2238595594ad2ac61f5164d011a05aea.tar.gz
feat: set defaults for `Dialog`'s `Theme` and `Renderer` type parameters
-rw-r--r--src/dialog.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dialog.rs b/src/dialog.rs
index 58c3481..8cba533 100644
--- a/src/dialog.rs
+++ b/src/dialog.rs
@@ -15,8 +15,12 @@ use iced_widget::{
///
/// [`buttons`]: Dialog::with_buttons
/// [`title`]: Dialog::title
-pub struct Dialog<'a, Message, Theme, Renderer>
-where
+pub struct Dialog<
+ 'a,
+ Message,
+ Theme = iced_widget::Theme,
+ Renderer = iced_widget::Renderer,
+> where
Renderer: 'a + core::text::Renderer,
Theme: 'a + Catalog,
{