#[non_exhaustive]pub struct ResolvedButtonTheme {Show 15 fields
pub background_color: Rgba,
pub primary_background: Rgba,
pub primary_text_color: Rgba,
pub min_width: f32,
pub min_height: f32,
pub icon_text_gap: f32,
pub disabled_opacity: f32,
pub hover_background: Rgba,
pub hover_text_color: Rgba,
pub active_text_color: Rgba,
pub disabled_text_color: Rgba,
pub active_background: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub font: ResolvedFontSpec,
pub border: ResolvedBorderSpec,
}Expand description
Push button: colors, sizing, spacing, geometry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background_color: RgbaDefault button background fill.
primary_background: RgbaPrimary / accent button background fill.
primary_text_color: RgbaPrimary / accent button text/icon color.
min_width: f32Minimum button width in logical pixels.
min_height: f32Minimum button height in logical pixels.
icon_text_gap: f32Space between icon and label.
disabled_opacity: f32Opacity multiplier when the button is disabled (0.0-1.0).
hover_background: RgbaButton background on hover.
hover_text_color: RgbaButton text color on hover.
active_text_color: RgbaButton text color when pressed/active.
disabled_text_color: RgbaButton text color when disabled.
active_background: Option<Rgba>Button background when pressed/active.
disabled_background: Option<Rgba>Button background when disabled.
font: ResolvedFontSpecButton label font specification.
border: ResolvedBorderSpecButton border 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