pub struct Ink {
pub dark: TextInk,
pub light: TextInk,
}Expand description
Text ink for both appearances.
Fields§
§dark: TextInk§light: TextInkImplementations§
Source§impl Ink
impl Ink
Sourcepub const APPKIT: Self
pub const APPKIT: Self
AppKit’s label, secondary and tertiary label colours. Muted is under 4.5:1 on white, and faint is under 3:1 in both appearances.
Sourcepub const ACCESSIBLE: Self
pub const ACCESSIBLE: Self
Text and muted at 4.5:1 or more and faint at 3:1 or more, on
Theme::bg and Theme::surface in both appearances.
pub fn for_appearance(&self, appearance: Appearance) -> TextInk
Trait Implementations§
impl Copy for Ink
impl StructuralPartialEq for Ink
Auto Trait Implementations§
impl Forget for Ink
impl Freeze for Ink
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more