pub struct ModalTheme {
pub bg_color: Color,
pub radius: f32,
pub shadow: Option<BoxShadow>,
pub max_width: f32,
pub container_style: ResolvedComponentStyle,
pub scrim_style: ResolvedComponentStyle,
pub scrim_blur: f32,
}Expand description
Visual parameters for the Modal widget.
Controls the dialog background color, corner radius, shadow, and maximum width.
Fields§
§bg_color: Color§radius: f32§shadow: Option<BoxShadow>§max_width: f32§container_style: ResolvedComponentStyle§scrim_style: ResolvedComponentStyle§scrim_blur: f32Implementations§
Source§impl ModalTheme
impl ModalTheme
pub fn from_tokens(tokens: &Tokens) -> Self
Trait Implementations§
Source§impl Clone for ModalTheme
impl Clone for ModalTheme
Source§fn clone(&self) -> ModalTheme
fn clone(&self) -> ModalTheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModalTheme
impl Debug for ModalTheme
Source§impl<'de> Deserialize<'de> for ModalTheme
impl<'de> Deserialize<'de> for ModalTheme
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 ModalTheme
impl PartialEq for ModalTheme
Source§fn eq(&self, other: &ModalTheme) -> bool
fn eq(&self, other: &ModalTheme) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModalTheme
impl Serialize for ModalTheme
impl StructuralPartialEq for ModalTheme
Auto Trait Implementations§
impl Freeze for ModalTheme
impl RefUnwindSafe for ModalTheme
impl Send for ModalTheme
impl Sync for ModalTheme
impl Unpin for ModalTheme
impl UnsafeUnpin for ModalTheme
impl UnwindSafe for ModalTheme
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