Enum cursive::theme::ColorStyle [] [src]

pub enum ColorStyle {
    Background,
    Shadow,
    Primary,
    Secondary,
    Tertiary,
    TitlePrimary,
    TitleSecondary,
    Highlight,
    HighlightInactive,
    Custom {
        front: Color,
        back: Color,
    },
}

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.

Variants

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

Directly specifies colors, independently of the theme.

Fields of Custom

Foreground color

Background color

Methods

impl ColorStyle
[src]

Return the color pair that this style represents.

Returns (front, back).

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.

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