#[non_exhaustive]pub struct ResolvedButtonTheme {Show 17 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 checked_background: Option<Rgba>,
pub checked_text_color: Option<Rgba>,
pub font: ResolvedFontSpec,
pub border: ResolvedWidgetBorder,
}Expand description
Push button: colors, sizing, spacing, geometry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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), applied to
the whole button on top of its disabled colours (see
ThemeDefaults::disabled_opacity).
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; None, the enabled background.
checked_background: Option<Rgba>Background of a toggle button that is on (checked): Breeze’s
Button mixed an eighth towards ButtonText, WinUI’s accent fill,
libadwaita’s pressed fill, Material’s secondary. None where the
platform states none (AppKit); a connector then shows the pressed
pair, active_background and active_text_color
(docs/platform-facts.md §2.3).
checked_text_color: Option<Rgba>Label color of a toggle button that is on; None, as for
checked_background, the pressed pair’s (docs/platform-facts.md §2.3).
font: ResolvedFontSpecButton label font specification.
border: ResolvedWidgetBorderButton border specification.