Enum cursive::theme::PaletteColor [−][src]
pub enum PaletteColor {
Background,
Shadow,
View,
Primary,
Secondary,
Tertiary,
TitlePrimary,
TitleSecondary,
Highlight,
HighlightInactive,
HighlightText,
}
Expand description
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
Trait Implementations
Takes an usize, and returns an element matching into_usize
function.
Returns an unique identifier for a value within range of 0..Array::LENGTH
.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the mutable indexing (container[index]
) operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for PaletteColor
impl Send for PaletteColor
impl Sync for PaletteColor
impl Unpin for PaletteColor
impl UnwindSafe for PaletteColor
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
.