pub struct TabBarTheme {
pub variant: Option<TabBarVariant>,
pub indicator_color: Option<Color>,
pub indicator_weight: Option<f32>,
pub label_color: Option<Color>,
pub unselected_label_color: Option<Color>,
pub label_style: Option<TextStyle>,
pub divider_color: Option<Color>,
pub divider_height: Option<f32>,
pub label_padding: Option<f32>,
pub tab_height: Option<f32>,
pub alignment: Option<TabAlignment>,
}Expand description
Defaults for TabBar — the bar, its labels and its indicator.
Fields§
§variant: Option<TabBarVariant>Which of the two bars an untold TabBar::new() is.
indicator_color: Option<Color>The indicator’s colour.
indicator_weight: Option<f32>Its thickness — and, on a primary bar, the radius of its top corners.
label_color: Option<Color>The selected label’s colour.
unselected_label_color: Option<Color>Every other label’s colour.
label_style: Option<TextStyle>The labels’ type.
divider_color: Option<Color>The colour of the hairline between the bar and what it labels.
divider_height: Option<f32>Its thickness; 0.0 removes it.
label_padding: Option<f32>The room on either side of a label.
tab_height: Option<f32>The tabs’ height, the indicator excluded.
alignment: Option<TabAlignment>Where the tabs sit when they do not fill the bar.
Trait Implementations§
Source§impl Clone for TabBarTheme
impl Clone for TabBarTheme
impl Copy for TabBarTheme
Source§impl Debug for TabBarTheme
impl Debug for TabBarTheme
Source§impl Default for TabBarTheme
impl Default for TabBarTheme
Source§impl PartialEq for TabBarTheme
impl PartialEq for TabBarTheme
impl StructuralPartialEq for TabBarTheme
Auto Trait Implementations§
impl Freeze for TabBarTheme
impl RefUnwindSafe for TabBarTheme
impl Send for TabBarTheme
impl Sync for TabBarTheme
impl Unpin for TabBarTheme
impl UnsafeUnpin for TabBarTheme
impl UnwindSafe for TabBarTheme
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