pub struct BadgeTheme {
pub background_color: Option<Color>,
pub text_color: Option<Color>,
pub text_style: Option<TextStyle>,
pub small_size: Option<f32>,
pub large_size: Option<f32>,
pub padding: Option<f32>,
}Expand description
Defaults for Badge.
A badge is an alert rather than an accent, which is why its untold fill is the
scheme’s error and not its primary. The two sizes are the reference’s: small_size
is the diameter of a badge with no label, large_size the height of one that carries
a count.
Fields§
§background_color: Option<Color>The pill’s fill.
text_color: Option<Color>The label’s colour on that fill.
text_style: Option<TextStyle>The label’s type.
small_size: Option<f32>The diameter of a badge with no label.
large_size: Option<f32>The height of a badge that carries one.
padding: Option<f32>The label’s room either side.
Trait Implementations§
Source§impl Clone for BadgeTheme
impl Clone for BadgeTheme
impl Copy for BadgeTheme
Source§impl Debug for BadgeTheme
impl Debug for BadgeTheme
Source§impl Default for BadgeTheme
impl Default for BadgeTheme
Source§impl PartialEq for BadgeTheme
impl PartialEq for BadgeTheme
impl StructuralPartialEq for BadgeTheme
Auto Trait Implementations§
impl Freeze for BadgeTheme
impl RefUnwindSafe for BadgeTheme
impl Send for BadgeTheme
impl Sync for BadgeTheme
impl Unpin for BadgeTheme
impl UnsafeUnpin for BadgeTheme
impl UnwindSafe for BadgeTheme
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