pub struct Palette {
pub background: Color,
pub surface: Color,
pub primary: Color,
pub on_primary: Color,
pub text: Color,
pub muted: Color,
}Expand description
A palette of semantic colours for a UI theme.
Fields§
§background: ColorWindow / page background colour.
surface: ColorCard / panel surface colour.
primary: ColorPrimary accent colour.
on_primary: ColorText drawn on top of the primary colour.
text: ColorMain body text colour.
muted: ColorDe-emphasised / disabled text colour.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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