pub struct ConfirmDialogStyle {
pub overlay: Color,
pub panel_bg: Color,
pub panel_border: Color,
pub title_fg: Color,
pub body_fg: Color,
pub btn_bg: Color,
pub btn_bg_primary: Color,
pub btn_fg: Color,
}Expand description
Generic confirmation modal dialog style.
Title and button labels are caller-defined; no app-specific copy in this crate.
§Examples
use ailloli_ui_widgets::overlay::modal::ConfirmDialogStyle;
let style = ConfirmDialogStyle::default();
assert!(style.overlay.a > 0.0);Fields§
§overlay: ColorFull-viewport scrim color.
panel_bg: ColorDialog panel fill.
panel_border: ColorOne-logical-pixel top and bottom panel rule color.
title_fg: ColorTitle glyph color.
body_fg: ColorBody glyph color.
btn_bg: ColorDeny-button fill.
btn_bg_primary: ColorAllow-button fill.
btn_fg: ColorShared button-label glyph color.
Trait Implementations§
Source§impl Clone for ConfirmDialogStyle
impl Clone for ConfirmDialogStyle
Source§fn clone(&self) -> ConfirmDialogStyle
fn clone(&self) -> ConfirmDialogStyle
Returns a copy 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 ConfirmDialogStyle
impl Debug for ConfirmDialogStyle
Source§impl Default for ConfirmDialogStyle
Supplies the dark fixed-confirmation palette.
impl Default for ConfirmDialogStyle
Supplies the dark fixed-confirmation palette.
impl Copy for ConfirmDialogStyle
Auto Trait Implementations§
impl Freeze for ConfirmDialogStyle
impl RefUnwindSafe for ConfirmDialogStyle
impl Send for ConfirmDialogStyle
impl Sync for ConfirmDialogStyle
impl Unpin for ConfirmDialogStyle
impl UnwindSafe for ConfirmDialogStyle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.