pub struct ContrastLevel;Expand description
Named contrast levels for Material 3 color schemes.
Material 3 baseline color schemes provide standard, medium, and high
contrast levels. When the color_scheme_seed parameter of the ThemeData
constructor is null, use STANDARD, MEDIUM, or
HIGH to select a token-backed baseline color scheme with that contrast
level.
A custom f64 between -1.0 and 1.0 can also be passed as the
contrast_level parameter of the ThemeData constructor when
color_scheme_seed is provided, in which case the value is passed to
ColorScheme::from_seed.
See also:
ColorScheme::from_seed, which generates a color scheme from a seed color, brightness, and contrast level.- https://m3.material.io/styles/color/system/overview, the Material 3 color system overview.
Implementations§
Source§impl ContrastLevel
impl ContrastLevel
Auto Trait Implementations§
impl Forget for ContrastLevel
impl Freeze for ContrastLevel
impl Move for ContrastLevel
impl RefUnwindSafe for ContrastLevel
impl Send for ContrastLevel
impl Sync for ContrastLevel
impl Unpin for ContrastLevel
impl UnsafeUnpin for ContrastLevel
impl UnwindSafe for ContrastLevel
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