pub struct DialogTheme {
pub background_color: Option<Rgba>,
pub min_width: Option<f32>,
pub max_width: Option<f32>,
pub min_height: Option<f32>,
pub max_height: Option<f32>,
pub button_gap: Option<f32>,
pub icon_size: Option<f32>,
pub button_order: Option<DialogButtonOrder>,
pub entrance: Option<DialogEntranceStyle>,
pub title_font: Option<FontSpec>,
pub body_font: Option<FontSpec>,
pub border: Option<WidgetBorderSpec>,
}Expand description
Dialog sizing, spacing, button order, fonts, border, and background.
Fields§
§background_color: Option<Rgba>Dialog background color.
min_width: Option<f32>Minimum dialog width in logical pixels.
max_width: Option<f32>Maximum dialog width in logical pixels.
min_height: Option<f32>Minimum dialog height in logical pixels.
max_height: Option<f32>Maximum dialog height in logical pixels.
Horizontal space between dialog buttons.
icon_size: Option<f32>Icon size for dialog type icons (warning, error, etc.).
Platform button order convention (e.g., OK/Cancel vs Cancel/OK).
entrance: Option<DialogEntranceStyle>How the dialog moves onto the screen as it opens: scaling up while it
fades in, or fading in while it rises into place. None where the
platform states none: AppKit names no dialog motion
(docs/platform-facts.md §2.22).
title_font: Option<FontSpec>Dialog title font specification.
body_font: Option<FontSpec>Dialog body font specification.
border: Option<WidgetBorderSpec>Dialog border specification.
Implementations§
Source§impl DialogTheme
impl DialogTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.