Make fields of Style structs public

This commit is contained in:
Héctor Ramón Jiménez 2024-03-07 20:13:29 +01:00
parent 833538ee7f
commit e11776055d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 4 additions and 4 deletions

View file

@ -602,9 +602,9 @@ pub struct Appearance {
#[derive(Debug, PartialEq, Eq)]
pub struct Style<Theme> {
/// 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`].
scrollable: fn(&Theme, scrollable::Status) -> scrollable::Appearance,
pub scrollable: fn(&Theme, scrollable::Status) -> scrollable::Appearance,
}
impl Style<Theme> {