pub struct ThemeColors {Show 16 fields
pub primary: Color,
pub secondary: Color,
pub accent: Color,
pub success: Color,
pub warning: Color,
pub danger: Color,
pub info: Color,
pub light: Color,
pub dark: Color,
pub muted: Color,
pub background: Color,
pub surface: Color,
pub text_primary: Color,
pub text_secondary: Color,
pub text_muted: Color,
pub border: Color,
}Expand description
Color palette for dashboard themes
Fields§
§primary: ColorPrimary brand color
secondary: ColorSecondary brand color
accent: ColorAccent color for highlights
success: ColorSuccess state color (green)
warning: ColorWarning state color (orange)
danger: ColorDanger/error state color (red)
info: ColorInformation state color (blue)
light: ColorLight neutral color
dark: ColorDark neutral color
muted: ColorMuted color for less important elements
background: ColorMain background color
surface: ColorSurface color (cards, panels)
text_primary: ColorPrimary text color
text_secondary: ColorSecondary text color
text_muted: ColorMuted text color
border: ColorBorder color
Trait Implementations§
Source§impl Clone for ThemeColors
impl Clone for ThemeColors
Source§fn clone(&self) -> ThemeColors
fn clone(&self) -> ThemeColors
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 ThemeColors
impl RefUnwindSafe for ThemeColors
impl Send for ThemeColors
impl Sync for ThemeColors
impl Unpin for ThemeColors
impl UnsafeUnpin for ThemeColors
impl UnwindSafe for ThemeColors
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