pub struct DialogTheme {
pub min_width: Option<f32>,
pub max_width: Option<f32>,
pub min_height: Option<f32>,
pub max_height: Option<f32>,
pub content_padding: Option<f32>,
pub button_spacing: Option<f32>,
pub radius: Option<f32>,
pub icon_size: Option<f32>,
pub button_order: Option<DialogButtonOrder>,
pub title_font: Option<FontSpec>,
}Expand description
Dialog sizing, spacing, button order, and title font.
Fields§
§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.
content_padding: Option<f32>Padding around dialog content.
Horizontal space between dialog buttons.
radius: Option<f32>Corner radius in logical pixels.
icon_size: Option<f32>Icon size for dialog type icons (warning, error, etc.).
Platform button order convention (e.g., OK/Cancel vs Cancel/OK).
title_font: Option<FontSpec>Dialog title font specification.
Implementations§
Source§impl DialogTheme
impl DialogTheme
Trait Implementations§
Source§impl Clone for DialogTheme
impl Clone for DialogTheme
Source§fn clone(&self) -> DialogTheme
fn clone(&self) -> DialogTheme
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 DialogTheme
impl Debug for DialogTheme
Source§impl Default for DialogTheme
impl Default for DialogTheme
Source§fn default() -> DialogTheme
fn default() -> DialogTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DialogThemewhere
DialogTheme: Default,
impl<'de> Deserialize<'de> for DialogThemewhere
DialogTheme: 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 DialogTheme
impl PartialEq for DialogTheme
Source§impl Serialize for DialogTheme
impl Serialize for DialogTheme
impl StructuralPartialEq for DialogTheme
Auto Trait Implementations§
impl Freeze for DialogTheme
impl RefUnwindSafe for DialogTheme
impl Send for DialogTheme
impl Sync for DialogTheme
impl Unpin for DialogTheme
impl UnsafeUnpin for DialogTheme
impl UnwindSafe for DialogTheme
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