pub struct Colors<Color = Srgb> {
pub palette: Palette<Color>,
pub accents: Vec<Color>,
pub foreground: Color,
pub background: Color,
}Expand description
The Theme’s colors.
Fields§
§palette: Palette<Color>§accents: Vec<Color>§foreground: Color§background: ColorTrait Implementations§
Source§impl<'de, Color> Deserialize<'de> for Colors<Color>where
Color: Deserialize<'de>,
impl<'de, Color> Deserialize<'de> for Colors<Color>where
Color: Deserialize<'de>,
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<Color> StructuralPartialEq for Colors<Color>
Auto Trait Implementations§
impl<Color> Freeze for Colors<Color>where
Color: Freeze,
impl<Color> RefUnwindSafe for Colors<Color>where
Color: RefUnwindSafe,
impl<Color> Send for Colors<Color>where
Color: Send,
impl<Color> Sync for Colors<Color>where
Color: Sync,
impl<Color> Unpin for Colors<Color>where
Color: Unpin,
impl<Color> UnwindSafe for Colors<Color>where
Color: UnwindSafe,
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