pub enum Ink {
Background,
Surface,
Text,
Muted,
Accent,
OnAccent,
Success,
Warning,
Danger,
}Expand description
A color role. Use it wherever a Color is accepted: .fill(Accent).
Variants§
Background
Page background.
Surface
Cards and panels, a step off the background.
Text
Primary text.
Muted
Secondary text. Still readable on the background and on Surface.
Accent
Brand color.
OnAccent
Text drawn on top of Accent.
Success
Positive state.
Warning
Caution.
Danger
Failure.
Trait Implementations§
impl Copy for Ink
impl Eq for Ink
Source§impl IntoPaint for Ink
impl IntoPaint for Ink
Source§fn into_paint(self) -> Color
fn into_paint(self) -> Color
Resolves to a color. An
Ink uses the current theme.impl StructuralPartialEq for Ink
Auto Trait Implementations§
impl Freeze for Ink
impl RefUnwindSafe for Ink
impl Send for Ink
impl Sync for Ink
impl Unpin for Ink
impl UnsafeUnpin for Ink
impl UnwindSafe for Ink
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