[][src]Enum cursive::theme::PaletteColor

pub enum PaletteColor {
    Background,
    Shadow,
    View,
    Primary,
    Secondary,
    Tertiary,
    TitlePrimary,
    TitleSecondary,
    Highlight,
    HighlightInactive,
    HighlightText,
}

Color entry in a palette.

Each PaletteColor is used for a specific role in a default application.

Variants

Background

Color used for the application background.

Shadow

Color used for View shadows.

View

Color used for View backgrounds.

Primary

Primary color used for the text.

Secondary

Secondary color used for the text.

Tertiary

Tertiary color used for the text.

TitlePrimary

Primary color used for title text.

TitleSecondary

Secondary color used for title text.

Highlight

Color used for highlighting text.

HighlightInactive

Color used for highlighting inactive text.

HighlightText

Color used for highlighted text

Implementations

impl PaletteColor[src]

pub fn resolve(self, palette: &Palette) -> Color[src]

Given a palette, resolve self to a concrete color.

Trait Implementations

impl Clone for PaletteColor[src]

impl Copy for PaletteColor[src]

impl Debug for PaletteColor[src]

impl<V> Enum<V> for PaletteColor[src]

type Array = [V; 11]

Representation of an enum map for type V, usually an array.

impl Eq for PaletteColor[src]

impl From<PaletteColor> for ColorStyle[src]

impl From<PaletteColor> for ColorType[src]

impl From<PaletteColor> for Style[src]

impl FromStr for PaletteColor[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for PaletteColor[src]

impl Index<PaletteColor> for Palette[src]

type Output = Color

The returned type after indexing.

impl IndexMut<PaletteColor> for Palette[src]

impl PartialEq<PaletteColor> for PaletteColor[src]

impl StructuralEq for PaletteColor[src]

impl StructuralPartialEq for PaletteColor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> With for T[src]