#[non_exhaustive]pub struct ResolvedDialogTheme {
pub background_color: Rgba,
pub min_width: f32,
pub max_width: f32,
pub min_height: f32,
pub max_height: f32,
pub button_gap: f32,
pub icon_size: f32,
pub button_order: DialogButtonOrder,
pub title_font: ResolvedFontSpec,
pub body_font: ResolvedFontSpec,
pub border: ResolvedBorderSpec,
}Expand description
Dialog sizing, spacing, button order, fonts, border, and background.
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: RgbaDialog background color.
min_width: f32Minimum dialog width in logical pixels.
max_width: f32Maximum dialog width in logical pixels.
min_height: f32Minimum dialog height in logical pixels.
max_height: f32Maximum dialog height in logical pixels.
Horizontal space between dialog buttons.
icon_size: f32Icon size for dialog type icons (warning, error, etc.).
Platform button order convention (e.g., OK/Cancel vs Cancel/OK).
title_font: ResolvedFontSpecDialog title font specification.
body_font: ResolvedFontSpecDialog body font specification.
border: ResolvedBorderSpecDialog border specification.
Trait Implementations§
Source§impl Clone for ResolvedDialogTheme
impl Clone for ResolvedDialogTheme
Source§fn clone(&self) -> ResolvedDialogTheme
fn clone(&self) -> ResolvedDialogTheme
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 ResolvedDialogTheme
impl Debug for ResolvedDialogTheme
Source§impl<'de> Deserialize<'de> for ResolvedDialogTheme
impl<'de> Deserialize<'de> for ResolvedDialogTheme
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 ResolvedDialogTheme
impl PartialEq for ResolvedDialogTheme
Source§impl Serialize for ResolvedDialogTheme
impl Serialize for ResolvedDialogTheme
impl StructuralPartialEq for ResolvedDialogTheme
Auto Trait Implementations§
impl Freeze for ResolvedDialogTheme
impl RefUnwindSafe for ResolvedDialogTheme
impl Send for ResolvedDialogTheme
impl Sync for ResolvedDialogTheme
impl Unpin for ResolvedDialogTheme
impl UnsafeUnpin for ResolvedDialogTheme
impl UnwindSafe for ResolvedDialogTheme
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