pub struct SegmentedTheme {
pub selected_color: Option<Color>,
pub label_color: Option<Color>,
pub selected_label_color: Option<Color>,
pub border_color: Option<Color>,
pub border_width: Option<f32>,
pub radius: Option<f32>,
pub height: Option<f32>,
pub padding: Option<f32>,
pub label_style: Option<TextStyle>,
pub icon_size: Option<f32>,
pub show_selected_icon: Option<bool>,
}Expand description
Defaults for SegmentedButton.
Fields§
§selected_color: Option<Color>The fill under the chosen segment.
label_color: Option<Color>The labels’ colour.
selected_label_color: Option<Color>The chosen segment’s label colour, and its checkmark’s.
border_color: Option<Color>The outline’s colour, and the hairlines’ between segments.
border_width: Option<f32>Their thickness; 0.0 removes both.
radius: Option<f32>The group’s outer radius. Unset, the ends are stadium-rounded.
height: Option<f32>The control’s height.
padding: Option<f32>The room either side of a label.
label_style: Option<TextStyle>The labels’ type.
icon_size: Option<f32>The checkmark’s size.
show_selected_icon: Option<bool>Whether the chosen segment carries a checkmark.
Trait Implementations§
Source§impl Clone for SegmentedTheme
impl Clone for SegmentedTheme
impl Copy for SegmentedTheme
Source§impl Debug for SegmentedTheme
impl Debug for SegmentedTheme
Source§impl Default for SegmentedTheme
impl Default for SegmentedTheme
Source§impl PartialEq for SegmentedTheme
impl PartialEq for SegmentedTheme
impl StructuralPartialEq for SegmentedTheme
Auto Trait Implementations§
impl Freeze for SegmentedTheme
impl RefUnwindSafe for SegmentedTheme
impl Send for SegmentedTheme
impl Sync for SegmentedTheme
impl Unpin for SegmentedTheme
impl UnsafeUnpin for SegmentedTheme
impl UnwindSafe for SegmentedTheme
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