pub struct ThemeInput<'a> {
pub name: &'a str,
pub scheme: Scheme,
pub primary: &'a str,
pub secondary: Option<&'a str>,
pub accent: Option<&'a str>,
pub neutral: Option<&'a str>,
pub info: Option<&'a str>,
pub success: Option<&'a str>,
pub warning: Option<&'a str>,
pub error: Option<&'a str>,
pub shape: Shape,
}Expand description
All inputs for theme new. Colours are hex strings (#rrggbb); only
primary is required.
Fields§
§name: &'a strTheme name (used in ids and the preview title).
scheme: SchemeLight or dark base.
primary: &'a strRequired primary colour.
secondary: Option<&'a str>Optional role overrides (hex).
accent: Option<&'a str>§neutral: Option<&'a str>§info: Option<&'a str>§success: Option<&'a str>§warning: Option<&'a str>§error: Option<&'a str>§shape: ShapeShape/typography knobs.
Trait Implementations§
Source§impl<'a> Clone for ThemeInput<'a>
impl<'a> Clone for ThemeInput<'a>
Source§fn clone(&self) -> ThemeInput<'a>
fn clone(&self) -> ThemeInput<'a>
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<'a> Freeze for ThemeInput<'a>
impl<'a> RefUnwindSafe for ThemeInput<'a>
impl<'a> Send for ThemeInput<'a>
impl<'a> Sync for ThemeInput<'a>
impl<'a> Unpin for ThemeInput<'a>
impl<'a> UnsafeUnpin for ThemeInput<'a>
impl<'a> UnwindSafe for ThemeInput<'a>
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.