pub struct ModalStyle {
pub dim_factor: f32,
pub base: BaseStyle,
}Expand description
Configuration for modal appearance
Follows the standard component style pattern with base plus a dim factor.
Fields§
§dim_factor: f32Dim factor for background (0.0 = no dim, 1.0 = black)
base: BaseStyleShared base style
Implementations§
Source§impl ModalStyle
impl ModalStyle
Sourcepub fn with_bg_and_border(bg: Color, border: BorderStyle) -> Self
pub fn with_bg_and_border(bg: Color, border: BorderStyle) -> Self
Create a style with a background color and border
Trait Implementations§
Source§impl ComponentStyle for ModalStyle
impl ComponentStyle for ModalStyle
Auto Trait Implementations§
impl Freeze for ModalStyle
impl RefUnwindSafe for ModalStyle
impl Send for ModalStyle
impl Sync for ModalStyle
impl Unpin for ModalStyle
impl UnwindSafe for ModalStyle
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more