pub struct CardTheme {
pub background: Option<Rgba>,
pub border: Option<Rgba>,
pub radius: Option<f32>,
pub padding: Option<f32>,
pub shadow: Option<bool>,
}Expand description
Card / container colors and geometry.
Fields§
§background: Option<Rgba>Card background fill.
border: Option<Rgba>Card border color.
radius: Option<f32>Corner radius in logical pixels.
padding: Option<f32>Padding inside the card.
shadow: Option<bool>Whether the card has a drop shadow.
Implementations§
Source§impl CardTheme
impl CardTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardTheme
impl<'de> Deserialize<'de> for CardTheme
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
impl StructuralPartialEq for CardTheme
Auto Trait Implementations§
impl Freeze for CardTheme
impl RefUnwindSafe for CardTheme
impl Send for CardTheme
impl Sync for CardTheme
impl Unpin for CardTheme
impl UnsafeUnpin for CardTheme
impl UnwindSafe for CardTheme
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