pub struct CustomTheme {
pub background: String,
pub text: String,
pub primary: String,
pub secondary: String,
pub success: String,
pub warning: String,
pub error: String,
}
Expand description
Custom theme configuration
Fields§
§background: String
Background color
text: String
Text color
primary: String
Primary accent color
secondary: String
Secondary accent color
success: String
Success color
warning: String
Warning color
error: String
Error color
Trait Implementations§
Source§impl Clone for CustomTheme
impl Clone for CustomTheme
Source§fn clone(&self) -> CustomTheme
fn clone(&self) -> CustomTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CustomTheme
impl Debug for CustomTheme
Source§impl PartialEq for CustomTheme
impl PartialEq for CustomTheme
Source§impl Serialize for CustomTheme
impl Serialize for CustomTheme
impl StructuralPartialEq for CustomTheme
Auto Trait Implementations§
impl Freeze for CustomTheme
impl RefUnwindSafe for CustomTheme
impl Send for CustomTheme
impl Sync for CustomTheme
impl Unpin for CustomTheme
impl UnwindSafe for CustomTheme
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 more