pub struct ResolvedButtonTheme {Show 14 fields
pub background: Rgba,
pub foreground: Rgba,
pub border: Rgba,
pub primary_background: Rgba,
pub primary_foreground: Rgba,
pub min_width: f32,
pub min_height: f32,
pub padding_horizontal: f32,
pub padding_vertical: f32,
pub radius: f32,
pub icon_spacing: f32,
pub disabled_opacity: f32,
pub shadow: bool,
pub font: ResolvedFontSpec,
}Expand description
Push button: colors, sizing, spacing, geometry.
Fields§
§background: RgbaDefault button background fill.
foreground: RgbaDefault button text/icon color.
border: RgbaButton border color.
primary_background: RgbaPrimary / accent button background fill.
primary_foreground: RgbaPrimary / accent button text/icon color.
min_width: f32Minimum button width in logical pixels.
min_height: f32Minimum button height in logical pixels.
padding_horizontal: f32Horizontal padding inside the button.
padding_vertical: f32Vertical padding inside the button.
radius: f32Corner radius in logical pixels.
icon_spacing: f32Space between icon and label.
disabled_opacity: f32Opacity multiplier when the button is disabled (0.0–1.0).
shadow: boolWhether the button has a drop shadow.
font: ResolvedFontSpecButton label font specification.
Trait Implementations§
Source§impl Clone for ResolvedButtonTheme
impl Clone for ResolvedButtonTheme
Source§fn clone(&self) -> ResolvedButtonTheme
fn clone(&self) -> ResolvedButtonTheme
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 ResolvedButtonTheme
impl Debug for ResolvedButtonTheme
Source§impl<'de> Deserialize<'de> for ResolvedButtonTheme
impl<'de> Deserialize<'de> for ResolvedButtonTheme
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 ResolvedButtonTheme
impl PartialEq for ResolvedButtonTheme
Source§impl Serialize for ResolvedButtonTheme
impl Serialize for ResolvedButtonTheme
impl StructuralPartialEq for ResolvedButtonTheme
Auto Trait Implementations§
impl Freeze for ResolvedButtonTheme
impl RefUnwindSafe for ResolvedButtonTheme
impl Send for ResolvedButtonTheme
impl Sync for ResolvedButtonTheme
impl Unpin for ResolvedButtonTheme
impl UnsafeUnpin for ResolvedButtonTheme
impl UnwindSafe for ResolvedButtonTheme
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