pub trait ForegroundRole: ColorRole { }Expand description
Marker trait for colors that can be used as foreground (text/icons).
Foreground colors are used for:
- Body text
- Icons
- Labels
- Any content that appears on top of a background
§Implementors
Foreground— Primary text colorForegroundDim— Secondary/muted text color
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.