pub struct ExpansionPanelListTheme {
pub background: Option<Color>,
pub radius: Option<f32>,
pub gap: Option<f32>,
pub divider_color: Option<Color>,
pub elevation: Option<f32>,
}Expand description
Defaults for ExpansionPanelList.
A list of panels is one surface that splits, so what it needs said once is the surface: its tone, its corners, the room an open panel is lifted by, and the hairline between two shut ones.
Fields§
§background: Option<Color>The surface the panels are drawn on. Unset, the scheme’s low container — the tone a card takes, because that is what a run of shut panels is.
radius: Option<f32>The corner radius of a card: the outer corners of a run, and all four of an open panel’s.
gap: Option<f32>The room an open panel is given either side of it, which is what makes it read as lifted out of the card rather than merely coloured differently.
divider_color: Option<Color>The hairline between two shut panels of one card.
elevation: Option<f32>How far the cards sit off the page. Unset, the reference’s 2; 0.0 is flat.
Trait Implementations§
Source§impl Clone for ExpansionPanelListTheme
impl Clone for ExpansionPanelListTheme
impl Copy for ExpansionPanelListTheme
Source§impl Debug for ExpansionPanelListTheme
impl Debug for ExpansionPanelListTheme
Source§impl Default for ExpansionPanelListTheme
impl Default for ExpansionPanelListTheme
Source§impl PartialEq for ExpansionPanelListTheme
impl PartialEq for ExpansionPanelListTheme
impl StructuralPartialEq for ExpansionPanelListTheme
Auto Trait Implementations§
impl Freeze for ExpansionPanelListTheme
impl RefUnwindSafe for ExpansionPanelListTheme
impl Send for ExpansionPanelListTheme
impl Sync for ExpansionPanelListTheme
impl Unpin for ExpansionPanelListTheme
impl UnsafeUnpin for ExpansionPanelListTheme
impl UnwindSafe for ExpansionPanelListTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more