pub enum SystemColor {
Show 42 variants
AccentColor,
AccentColorText,
ActiveText,
ButtonBorder,
ButtonFace,
ButtonText,
Canvas,
CanvasText,
Field,
FieldText,
GrayText,
Highlight,
HighlightText,
LinkText,
Mark,
MarkText,
SelectedItem,
SelectedItemText,
VisitedText,
ActiveBorder,
ActiveCaption,
AppWorkspace,
Background,
ButtonHighlight,
ButtonShadow,
CaptionText,
InactiveBorder,
InactiveCaption,
InactiveCaptionText,
InfoBackground,
InfoText,
Menu,
MenuText,
Scrollbar,
ThreeDDarkShadow,
ThreeDFace,
ThreeDHighlight,
ThreeDLightShadow,
ThreeDShadow,
Window,
WindowFrame,
WindowText,
}Expand description
A CSS system color keyword.
Variants§
AccentColor
Background of accented user interface controls.
AccentColorText
Text of accented user interface controls.
ActiveText
Text in active links. For light backgrounds, traditionally red.
ButtonBorder
The base border color for push buttons.
ButtonFace
The face background color for push buttons.
ButtonText
Text on push buttons.
Canvas
Background of application content or documents.
CanvasText
Text in application content or documents.
Field
Background of input fields.
FieldText
Text in input fields.
GrayText
Disabled text. (Often, but not necessarily, gray.)
Highlight
Background of selected text, for example from ::selection.
HighlightText
Text of selected text.
LinkText
Text in non-active, non-visited links. For light backgrounds, traditionally blue.
Mark
Background of text that has been specially marked (such as by the HTML mark element).
MarkText
Text that has been specially marked (such as by the HTML mark element).
SelectedItem
Background of selected items, for example a selected checkbox.
SelectedItemText
Text of selected items.
VisitedText
Text in visited links. For light backgrounds, traditionally purple.
ActiveBorder
Active window border. Same as ButtonBorder.
ActiveCaption
Active window caption. Same as Canvas.
AppWorkspace
Background color of multiple document interface. Same as Canvas.
Background
Desktop background. Same as Canvas.
ButtonHighlight
The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border. Same as ButtonFace.
ButtonShadow
The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border. Same as ButtonFace.
CaptionText
Text in caption, size box, and scrollbar arrow box. Same as CanvasText.
InactiveBorder
Inactive window border. Same as ButtonBorder.
InactiveCaption
Inactive window caption. Same as Canvas.
InactiveCaptionText
Color of text in an inactive caption. Same as GrayText.
InfoBackground
Background color for tooltip controls. Same as Canvas.
InfoText
Text color for tooltip controls. Same as CanvasText.
Menu
Menu background. Same as Canvas.
MenuText
Text in menus. Same as CanvasText.
Scrollbar
Scroll bar gray area. Same as Canvas.
ThreeDDarkShadow
The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border. Same as ButtonBorder.
ThreeDFace
The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border. Same as ButtonFace.
ThreeDHighlight
The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border. Same as ButtonBorder.
ThreeDLightShadow
The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border. Same as ButtonBorder.
ThreeDShadow
The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border. Same as ButtonBorder.
Window
Window background. Same as Canvas.
WindowFrame
Window frame. Same as ButtonBorder.
WindowText
Text in windows. Same as CanvasText.
Trait Implementations§
Source§impl Clone for SystemColor
impl Clone for SystemColor
impl Copy for SystemColor
Source§impl Debug for SystemColor
impl Debug for SystemColor
Source§impl<'de> Deserialize<'de> for SystemColor
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SystemColor
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'any> IntoOwned<'any> for SystemColor
Available on crate feature into_owned only.
impl<'any> IntoOwned<'any> for SystemColor
into_owned only.Source§type Owned = SystemColor
type Owned = SystemColor
Self with a new lifetime.Source§fn into_owned(self) -> Self
fn into_owned(self) -> Self
self 'static.Source§impl IsCompatible for SystemColor
impl IsCompatible for SystemColor
Source§fn is_compatible(&self, browsers: Browsers) -> bool
fn is_compatible(&self, browsers: Browsers) -> bool
Source§impl JsonSchema for SystemColor
Available on crate feature jsonschema only.
impl JsonSchema for SystemColor
jsonschema only.Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl<'i> Parse<'i> for SystemColor
impl<'i> Parse<'i> for SystemColor
Source§fn parse<'t>(
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse<'t>( input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i, ParserError<'i>>>
Source§fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
Source§impl PartialEq for SystemColor
impl PartialEq for SystemColor
Source§impl Serialize for SystemColor
Available on crate feature serde only.
impl Serialize for SystemColor
serde only.impl StructuralPartialEq for SystemColor
Source§impl ToCss for SystemColor
impl ToCss for SystemColor
Source§fn to_css<W>(&self, dest: &mut Printer<'_, '_, W>) -> Result<(), PrinterError>where
W: Write,
fn to_css<W>(&self, dest: &mut Printer<'_, '_, W>) -> Result<(), PrinterError>where
W: Write,
self in CSS syntax, writing to dest.Source§fn to_css_string(
&self,
options: PrinterOptions<'_>,
) -> Result<String, PrinterError>
fn to_css_string( &self, options: PrinterOptions<'_>, ) -> Result<String, PrinterError>
self in CSS syntax and return a string. Read moreSource§impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for SystemColor
Available on crate feature visitor only.
impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for SystemColor
visitor only.Source§const CHILD_TYPES: VisitTypes
const CHILD_TYPES: VisitTypes
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.