Make fields of Style structs public
This commit is contained in:
parent
833538ee7f
commit
e11776055d
2 changed files with 4 additions and 4 deletions
|
|
@ -766,10 +766,10 @@ where
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub struct Style<Theme> {
|
pub struct Style<Theme> {
|
||||||
/// The style of the [`TextInput`] of the [`ComboBox`].
|
/// The style of the [`TextInput`] of the [`ComboBox`].
|
||||||
text_input: fn(&Theme, text_input::Status) -> text_input::Appearance,
|
pub text_input: fn(&Theme, text_input::Status) -> text_input::Appearance,
|
||||||
|
|
||||||
/// The style of the [`Menu`] of the [`ComboBox`].
|
/// The style of the [`Menu`] of the [`ComboBox`].
|
||||||
menu: menu::Style<Theme>,
|
pub menu: menu::Style<Theme>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Style<Theme> {
|
impl Style<Theme> {
|
||||||
|
|
|
||||||
|
|
@ -602,9 +602,9 @@ pub struct Appearance {
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub struct Style<Theme> {
|
pub struct Style<Theme> {
|
||||||
/// The style of the list of the [`Menu`].
|
/// The style of the list of the [`Menu`].
|
||||||
list: fn(&Theme) -> Appearance,
|
pub list: fn(&Theme) -> Appearance,
|
||||||
/// The style of the [`Scrollable`] of the [`Menu`].
|
/// The style of the [`Scrollable`] of the [`Menu`].
|
||||||
scrollable: fn(&Theme, scrollable::Status) -> scrollable::Appearance,
|
pub scrollable: fn(&Theme, scrollable::Status) -> scrollable::Appearance,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Style<Theme> {
|
impl Style<Theme> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue