pub struct PaletteSpec {
pub scheme: Scheme,
pub primary: Rgb,
pub secondary: Option<Rgb>,
pub accent: Option<Rgb>,
pub neutral: Option<Rgb>,
pub info: Option<Rgb>,
pub success: Option<Rgb>,
pub warning: Option<Rgb>,
pub error: Option<Rgb>,
}Expand description
Brand input: a primary plus optional overrides. Unset roles are derived.
Fields§
§scheme: SchemeLight or dark base.
primary: RgbThe brand’s primary colour (required).
secondary: Option<Rgb>Secondary colour; defaults to the primary when absent.
accent: Option<Rgb>Accent colour; defaults to the secondary (or primary) when absent.
neutral: Option<Rgb>Neutral colour; derived from a tinted grey when absent.
info: Option<Rgb>Status colours; sensible universal hues are used when absent.
success: Option<Rgb>See PaletteSpec::info.
warning: Option<Rgb>See PaletteSpec::info.
error: Option<Rgb>See PaletteSpec::info.
Trait Implementations§
Source§impl Clone for PaletteSpec
impl Clone for PaletteSpec
Source§fn clone(&self) -> PaletteSpec
fn clone(&self) -> PaletteSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PaletteSpec
impl RefUnwindSafe for PaletteSpec
impl Send for PaletteSpec
impl Sync for PaletteSpec
impl Unpin for PaletteSpec
impl UnsafeUnpin for PaletteSpec
impl UnwindSafe for PaletteSpec
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