pub enum ColorRole {
Show 61 variants
Background,
Error,
ErrorContainer,
Info,
InfoContainer,
InverseOnSurface,
InversePrimary,
InverseSurface,
OnBackground,
OnError,
OnErrorContainer,
OnInfo,
OnInfoContainer,
OnPrimary,
OnPrimaryContainer,
OnPrimaryFixed,
OnPrimaryFixedVariant,
OnSecondary,
OnSecondaryContainer,
OnSecondaryFixed,
OnSecondaryFixedVariant,
OnSuccess,
OnSuccessContainer,
OnSurface,
OnSurfaceVariant,
OnTertiary,
OnTertiaryContainer,
OnTertiaryFixed,
OnTertiaryFixedVariant,
OnWarning,
OnWarningContainer,
Outline,
OutlineVariant,
Primary,
PrimaryContainer,
PrimaryFixed,
PrimaryFixedDim,
Scrim,
Secondary,
SecondaryContainer,
SecondaryFixed,
SecondaryFixedDim,
Shadow,
Success,
SuccessContainer,
Surface,
SurfaceBright,
SurfaceContainer,
SurfaceContainerHigh,
SurfaceContainerHighest,
SurfaceContainerLow,
SurfaceContainerLowest,
SurfaceDim,
SurfaceTint,
SurfaceVariant,
Tertiary,
TertiaryContainer,
TertiaryFixed,
TertiaryFixedDim,
Warning,
WarningContainer,
}Expand description
Semantic Material color roles.
Variants§
Background
The md.sys.color.background Material color role.
Error
The md.sys.color.error Material color role.
ErrorContainer
The md.sys.color.error-container Material color role.
Info
The md.sys.color.info Material color role.
InfoContainer
The md.sys.color.info-container Material color role.
InverseOnSurface
The md.sys.color.inverse-on-surface Material color role.
InversePrimary
The md.sys.color.inverse-primary Material color role.
InverseSurface
The md.sys.color.inverse-surface Material color role.
OnBackground
The md.sys.color.on-background Material color role.
OnError
The md.sys.color.on-error Material color role.
OnErrorContainer
The md.sys.color.on-error-container Material color role.
OnInfo
The md.sys.color.on-info Material color role.
OnInfoContainer
The md.sys.color.on-info-container Material color role.
OnPrimary
The md.sys.color.on-primary Material color role.
OnPrimaryContainer
The md.sys.color.on-primary-container Material color role.
OnPrimaryFixed
The md.sys.color.on-primary-fixed Material color role.
OnPrimaryFixedVariant
The md.sys.color.on-primary-fixed-variant Material color role.
OnSecondary
The md.sys.color.on-secondary Material color role.
OnSecondaryContainer
The md.sys.color.on-secondary-container Material color role.
OnSecondaryFixed
The md.sys.color.on-secondary-fixed Material color role.
OnSecondaryFixedVariant
The md.sys.color.on-secondary-fixed-variant Material color role.
OnSuccess
The md.sys.color.on-success Material color role.
OnSuccessContainer
The md.sys.color.on-success-container Material color role.
OnSurface
The md.sys.color.on-surface Material color role.
OnSurfaceVariant
The md.sys.color.on-surface-variant Material color role.
OnTertiary
The md.sys.color.on-tertiary Material color role.
OnTertiaryContainer
The md.sys.color.on-tertiary-container Material color role.
OnTertiaryFixed
The md.sys.color.on-tertiary-fixed Material color role.
OnTertiaryFixedVariant
The md.sys.color.on-tertiary-fixed-variant Material color role.
OnWarning
The md.sys.color.on-warning Material color role.
OnWarningContainer
The md.sys.color.on-warning-container Material color role.
Outline
The md.sys.color.outline Material color role.
OutlineVariant
The md.sys.color.outline-variant Material color role.
Primary
The md.sys.color.primary Material color role.
PrimaryContainer
The md.sys.color.primary-container Material color role.
PrimaryFixed
The md.sys.color.primary-fixed Material color role.
PrimaryFixedDim
The md.sys.color.primary-fixed-dim Material color role.
Scrim
The md.sys.color.scrim Material color role.
Secondary
The md.sys.color.secondary Material color role.
SecondaryContainer
The md.sys.color.secondary-container Material color role.
SecondaryFixed
The md.sys.color.secondary-fixed Material color role.
SecondaryFixedDim
The md.sys.color.secondary-fixed-dim Material color role.
Shadow
The md.sys.color.shadow Material color role.
Success
The md.sys.color.success Material color role.
SuccessContainer
The md.sys.color.success-container Material color role.
Surface
The md.sys.color.surface Material color role.
SurfaceBright
The md.sys.color.surface-bright Material color role.
SurfaceContainer
The md.sys.color.surface-container Material color role.
SurfaceContainerHigh
The md.sys.color.surface-container-high Material color role.
SurfaceContainerHighest
The md.sys.color.surface-container-highest Material color role.
SurfaceContainerLow
The md.sys.color.surface-container-low Material color role.
SurfaceContainerLowest
The md.sys.color.surface-container-lowest Material color role.
SurfaceDim
The md.sys.color.surface-dim Material color role.
SurfaceTint
The md.sys.color.surface-tint Material color role.
SurfaceVariant
The md.sys.color.surface-variant Material color role.
Tertiary
The md.sys.color.tertiary Material color role.
TertiaryContainer
The md.sys.color.tertiary-container Material color role.
TertiaryFixed
The md.sys.color.tertiary-fixed Material color role.
TertiaryFixedDim
The md.sys.color.tertiary-fixed-dim Material color role.
Warning
The md.sys.color.warning Material color role.
WarningContainer
The md.sys.color.warning-container Material color role.
Implementations§
Trait Implementations§
impl Copy for ColorRole
Source§impl<'de> Deserialize<'de> for ColorRole
impl<'de> Deserialize<'de> for ColorRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ColorRole
Source§impl Ord for ColorRole
impl Ord for ColorRole
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for ColorRole
impl PartialOrd for ColorRole
impl StructuralPartialEq for ColorRole
Auto Trait Implementations§
impl Forget for ColorRole
impl Freeze for ColorRole
impl Move for ColorRole
impl RefUnwindSafe for ColorRole
impl Send for ColorRole
impl Sync for ColorRole
impl Unpin for ColorRole
impl UnsafeUnpin for ColorRole
impl UnwindSafe for ColorRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.