pub enum SystemColor {
Show 19 variants
AccentColor,
AccentColorText,
ActiveText,
ButtonBorder,
ButtonFace,
ButtonText,
Canvas,
CanvasText,
Field,
FieldText,
GrayText,
Highlight,
HighlightText,
LinkText,
Mark,
MarkText,
SelectedItem,
SelectedItemText,
VisitedText,
}Expand description
A CSS system color keyword, resolved against the Theme’s
semantic palette rather than a fixed RGB value.
Deprecated keywords (ActiveBorder, WindowText, …) parse to the
modern keyword CSS Color 4 §6.5 maps them to.
Variants§
AccentColor
Accent fill for selected or activated interface parts.
AccentColorText
Text painted over Self::AccentColor fills.
ActiveText
Text of active links.
ButtonBorder
Border of push buttons.
ButtonFace
Face of push buttons.
ButtonText
Text on push buttons.
Canvas
The application background: the terminal’s own default.
CanvasText
Text on the application background.
Field
Background of input fields.
FieldText
Text inside input fields.
GrayText
Disabled or de-emphasized text.
Highlight
Background of selected text.
HighlightText
Selected text.
LinkText
Text of unvisited links.
Mark
Background of highlighter marks.
MarkText
Text inside highlighter marks.
SelectedItem
Background of chosen items.
SelectedItemText
Text of chosen items.
VisitedText
Text of visited links.
Trait Implementations§
Source§impl Clone for SystemColor
impl Clone for SystemColor
Source§fn clone(&self) -> SystemColor
fn clone(&self) -> SystemColor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SystemColor
Source§impl Debug for SystemColor
impl Debug for SystemColor
impl Eq for SystemColor
Source§impl PartialEq for SystemColor
impl PartialEq for SystemColor
impl StructuralPartialEq for SystemColor
Auto Trait Implementations§
impl Freeze for SystemColor
impl RefUnwindSafe for SystemColor
impl Send for SystemColor
impl Sync for SystemColor
impl Unpin for SystemColor
impl UnsafeUnpin for SystemColor
impl UnwindSafe for SystemColor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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