Struct cursive::theme::ColorStyle [−][src]
Expand description
Possible color style for a cell.
Represents a color pair role to use when printing something.
The current theme will assign each role a foreground and background color.
The Default
value is to inherit the parent’s colors.
Fields
front: ColorType
Color used for the foreground (the text itself).
back: ColorType
Color used for the background.
Implementations
Creates
Uses the given color as front, inherits the parent background color.
Uses the given color as background, inherits the parent front color.
Uses ColorType::InheritParent
for both front and background.
Style set by terminal before entering a Cursive program.
Application background, where no view is present.
Color used by view shadows. Only background matters.
Main text with default background.
Secondary text color, with default background.
Tertiary text color, with default background.
Title text color with default background.
Alternative color for a title.
Alternate text with highlight background.
Highlight color for inactive views (not in focus).
Merge the style b
over style a
.
This merges the front and back color types of a
and b
.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ColorStyle
impl Send for ColorStyle
impl Sync for ColorStyle
impl Unpin for ColorStyle
impl UnwindSafe for ColorStyle
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.