pub struct ModalStyle {Show 17 fields
pub body_margin: f32,
pub frame_margin: f32,
pub icon_margin: f32,
pub icon_size: f32,
pub overlay_color: Color32,
pub caution_button_fill: Color32,
pub suggested_button_fill: Color32,
pub caution_button_text_color: Color32,
pub suggested_button_text_color: Color32,
pub dialog_ok_text: String,
pub info_icon_color: Color32,
pub warning_icon_color: Color32,
pub success_icon_color: Color32,
pub error_icon_color: Color32,
pub default_width: Option<f32>,
pub default_height: Option<f32>,
pub body_alignment: Align,
}
Expand description
Contains styling parameters for the modal, like body margin and button colors.
Fields§
§body_margin: f32
The margin around the modal body. Only applies if using
[.body()
]
frame_margin: f32
The margin around the container of the icon and body. Only
applies if using [.frame()
]
icon_margin: f32
The margin around the container of the icon. Only applies
if using [.icon()
].
icon_size: f32
The size of any icons used in the modal
overlay_color: Color32
The color of the overlay that dims the background
The fill color for the caution button style
The fill color for the suggested button style
The text color for the caution button style
The text color for the suggested button style
dialog_ok_text: String
The text of the acknowledgement button for dialogs
info_icon_color: Color32
The color of the info icon
warning_icon_color: Color32
The color of the warning icon
success_icon_color: Color32
The color of the success icon
error_icon_color: Color32
The color of the error icon
default_width: Option<f32>
The default width of the modal
default_height: Option<f32>
The default height of the modal
body_alignment: Align
The alignment of text inside the body
Trait Implementations§
source§impl Clone for ModalStyle
impl Clone for ModalStyle
source§fn clone(&self) -> ModalStyle
fn clone(&self) -> ModalStyle
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModalStyle
impl Debug 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)