Make defaults of composite widgets configurable
This commit is contained in:
parent
f0ae9a0c38
commit
74373cb086
3 changed files with 35 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue