pub struct ButtonTheme {Show 14 fields
pub background: Option<Rgba>,
pub foreground: Option<Rgba>,
pub border: Option<Rgba>,
pub primary_bg: Option<Rgba>,
pub primary_fg: Option<Rgba>,
pub min_width: Option<f32>,
pub min_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
pub radius: Option<f32>,
pub icon_spacing: Option<f32>,
pub disabled_opacity: Option<f32>,
pub shadow: Option<bool>,
pub font: Option<FontSpec>,
}Expand description
Push button: colors, sizing, spacing, geometry.
Fields§
§background: Option<Rgba>§foreground: Option<Rgba>§border: Option<Rgba>§primary_bg: Option<Rgba>§primary_fg: Option<Rgba>§min_width: Option<f32>§min_height: Option<f32>§padding_horizontal: Option<f32>§padding_vertical: Option<f32>§radius: Option<f32>§icon_spacing: Option<f32>§disabled_opacity: Option<f32>§shadow: Option<bool>§font: Option<FontSpec>Implementations§
Source§impl ButtonTheme
impl ButtonTheme
Trait Implementations§
Source§impl Clone for ButtonTheme
impl Clone for ButtonTheme
Source§fn clone(&self) -> ButtonTheme
fn clone(&self) -> ButtonTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtonTheme
impl Debug for ButtonTheme
Source§impl Default for ButtonTheme
impl Default for ButtonTheme
Source§fn default() -> ButtonTheme
fn default() -> ButtonTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ButtonThemewhere
ButtonTheme: Default,
impl<'de> Deserialize<'de> for ButtonThemewhere
ButtonTheme: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ButtonTheme
impl PartialEq for ButtonTheme
Source§impl Serialize for ButtonTheme
impl Serialize for ButtonTheme
impl StructuralPartialEq for ButtonTheme
Auto Trait Implementations§
impl Freeze for ButtonTheme
impl RefUnwindSafe for ButtonTheme
impl Send for ButtonTheme
impl Sync for ButtonTheme
impl Unpin for ButtonTheme
impl UnsafeUnpin for ButtonTheme
impl UnwindSafe for ButtonTheme
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