pub struct ColorScheme {Show 15 fields
pub primary: Color,
pub on_primary: Color,
pub primary_container: Color,
pub on_primary_container: Color,
pub secondary: Color,
pub on_secondary: Color,
pub surface: Color,
pub on_surface: Color,
pub surface_variant: Color,
pub background: Color,
pub on_background: Color,
pub error: Color,
pub on_error: Color,
pub outline: Color,
pub shadow: Color,
}Expand description
The semantic color roles used throughout a theme (Material Design 3 inspired).
Fields§
§primary: Color§on_primary: Color§primary_container: Color§on_primary_container: Color§secondary: Color§on_secondary: Color§surface: Color§on_surface: Color§surface_variant: Color§background: Color§on_background: Color§error: Color§on_error: Color§outline: Color§shadow: ColorTrait Implementations§
Source§impl Clone for ColorScheme
impl Clone for ColorScheme
Source§fn clone(&self) -> ColorScheme
fn clone(&self) -> ColorScheme
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 ColorScheme
impl RefUnwindSafe for ColorScheme
impl Send for ColorScheme
impl Sync for ColorScheme
impl Unpin for ColorScheme
impl UnsafeUnpin for ColorScheme
impl UnwindSafe for ColorScheme
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