pub struct AlertTheme {
pub info_bg: Color,
pub warning_bg: Color,
pub error_bg: Color,
pub success_bg: Color,
pub radius: f32,
}Expand description
Visual parameters for the Alert widget, with per-severity background colors.
Fields§
§info_bg: Color§warning_bg: Color§error_bg: Color§success_bg: Color§radius: f32Implementations§
Source§impl AlertTheme
impl AlertTheme
pub fn from_tokens(tokens: &Tokens) -> Self
Trait Implementations§
Source§impl Clone for AlertTheme
impl Clone for AlertTheme
Source§fn clone(&self) -> AlertTheme
fn clone(&self) -> AlertTheme
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 AlertTheme
impl Debug for AlertTheme
Source§impl<'de> Deserialize<'de> for AlertTheme
impl<'de> Deserialize<'de> for AlertTheme
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 AlertTheme
impl PartialEq for AlertTheme
Source§impl Serialize for AlertTheme
impl Serialize for AlertTheme
impl StructuralPartialEq for AlertTheme
Auto Trait Implementations§
impl Freeze for AlertTheme
impl RefUnwindSafe for AlertTheme
impl Send for AlertTheme
impl Sync for AlertTheme
impl Unpin for AlertTheme
impl UnsafeUnpin for AlertTheme
impl UnwindSafe for AlertTheme
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