pub struct MaterialSemanticColors {
pub emphasis: Color,
pub on_emphasis: Color,
pub info: Color,
pub success: Color,
pub warning: Color,
pub danger: Color,
pub surface_strong: Color,
pub on_surface_strong: Color,
pub outline_strong: Color,
}Expand description
The nine M3E roles ColorScheme has no field for — one brightness’s
worth. Carried by super::extension::MaterialTokens as its
light/dark fields; see module docs for how each is sourced.
Fields§
§emphasis: Coloremphasis — the reference’s high-emphasis accent (scheme.primary).
on_emphasis: ColoronEmphasis — content color on Self::emphasis (scheme.onPrimary).
info: Colorinfo — informational role (scheme.tertiary). Same name, different
value from frust::StatusPalette’s info — see module docs
and [super]’s “Two semantic vocabularies” section: this is the
M3E-parity value, StatusPalette’s is the framework’s own
community-approximate status trio, deliberately divergent.
success: Colorsuccess — independent semantic constant, not derived from scheme.
Same name as frust::StatusPalette’s success field; the two
vocabularies happen to agree in the light branch but diverge in dark
— coincidence, not a contract (see [super]’s module docs).
warning: Colorwarning — independent semantic constant, not derived from scheme.
Same name, different value from frust::StatusPalette’s warning —
see [super]’s “Two semantic vocabularies” section.
danger: Colordanger — destructive/error role (scheme.error).
surface_strong: ColorsurfaceStrong — a slightly emphasized grouped-container surface;
primary alpha-blended over surface at 6%.
on_surface_strong: ColoronSurfaceStrong — content color on Self::surface_strong
(scheme.onSurface).
outline_strong: ColoroutlineStrong — a stronger outline for high-contrast separators
(scheme.outline).
Trait Implementations§
Source§impl Clone for MaterialSemanticColors
impl Clone for MaterialSemanticColors
impl Copy for MaterialSemanticColors
Source§impl Debug for MaterialSemanticColors
impl Debug for MaterialSemanticColors
Source§impl PartialEq for MaterialSemanticColors
impl PartialEq for MaterialSemanticColors
impl StructuralPartialEq for MaterialSemanticColors
Auto Trait Implementations§
impl Freeze for MaterialSemanticColors
impl RefUnwindSafe for MaterialSemanticColors
impl Send for MaterialSemanticColors
impl Sync for MaterialSemanticColors
impl Unpin for MaterialSemanticColors
impl UnsafeUnpin for MaterialSemanticColors
impl UnwindSafe for MaterialSemanticColors
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.