Struct cursive::theme::ColorStyle[][src]

pub struct ColorStyle {
    pub front: ColorType,
    pub back: ColorType,
}

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.

Fields

Color used for the foreground (the text itself).

Color used for the background.

Methods

impl ColorStyle
[src]

Creates

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).

Return the color pair that this style represents.

Trait Implementations

impl Clone for ColorStyle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ColorStyle
[src]

impl Debug for ColorStyle
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ColorStyle
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ColorStyle
[src]

impl Hash for ColorStyle
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl From<Color> for ColorStyle
[src]

Performs the conversion.

impl From<PaletteColor> for ColorStyle
[src]

Performs the conversion.

impl From<ColorType> for ColorStyle
[src]

Performs the conversion.

impl<F, B> From<(F, B)> for ColorStyle where
    F: Into<ColorType>,
    B: Into<ColorType>, 
[src]

Performs the conversion.

impl From<ColorStyle> for Style
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ColorStyle

impl Sync for ColorStyle