Skip to main content

Module color

Module color 

Source
Expand description

CSS property types for color.

Structs§

ColorF
f32-based color, range 0.0 to 1.0 (similar to webrenders ColorF)
ColorU
u8-based color, range 0 to 255 (similar to webrenders ColorU)

Enums§

ColorOrSystem
A color reference that can be either a concrete color or a system color. System colors are lazily evaluated at runtime based on the user’s system theme.
CssColorComponent
CssColorParseError
CssColorParseErrorOwned
OptionColorU
SystemColorRef
Reference to a specific system color. These are resolved at runtime based on the user’s system preferences.

Functions§

parse_color_or_system
Parse a color that can be either a concrete color or a system color reference.
parse_css_color