Expand description
A Style
is passed to you when doing dynamic color calculations. You can opt to
provide different colors depending on the settings in here - notably, this is useful
for supporting dark mode and high contrast accessibility contexts.
Fields
theme: Theme
Represents the current theme for where this color may render.
contrast: Contrast
Represents the current contrast level for where this color may render.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more