diff options
Diffstat (limited to 'widget/src/pick_list.rs')
-rw-r--r-- | widget/src/pick_list.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/widget/src/pick_list.rs b/widget/src/pick_list.rs index e9c33d3d..801e792b 100644 --- a/widget/src/pick_list.rs +++ b/widget/src/pick_list.rs @@ -84,7 +84,7 @@ where font: None, handle: Handle::default(), class: <Theme as Catalog>::default(), - menu_class: <Theme as menu::Catalog>::default(), + menu_class: <Theme as Catalog>::default_menu(), } } @@ -700,6 +700,11 @@ pub trait Catalog: menu::Catalog { /// The default class produced by the [`Catalog`]. fn default<'a>() -> <Self as Catalog>::Class<'a>; + /// The default class for the menu of the [`PickList`]. + fn default_menu<'a>() -> <Self as menu::Catalog>::Class<'a> { + <Self as menu::Catalog>::default() + } + /// The [`Style`] of a class with the given status. fn style( &self, |