pub enum Color {
Rgba(u8, u8, u8, u8),
Label,
SecondaryLabel,
Accent,
Separator,
SystemRed,
SystemOrange,
SystemGreen,
SystemYellow,
}Expand description
A color: either a literal RGBA value, or a semantic role that resolves
against the active Theme (and, on macOS, to the matching
system NSColor) so dark/light and accent adapt automatically.
Variants§
Rgba(u8, u8, u8, u8)
A literal 8-bit-per-channel RGBA color.
Label
Primary text color (labelColor).
SecondaryLabel
De-emphasized text color (secondaryLabelColor), e.g. a version tail.
Accent
The user’s accent color (controlAccentColor).
Separator
Separator / hairline color.
SystemRed
System red — used for critical/over-limit severity.
SystemOrange
System orange — used for warning severity.
SystemGreen
System green — used for healthy severity.
SystemYellow
System yellow.
Implementations§
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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