Enum cursive_core::theme::PaletteColor
source · 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§
source§impl Clone for PaletteColor
impl Clone for PaletteColor
source§fn clone(&self) -> PaletteColor
fn clone(&self) -> PaletteColor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PaletteColor
impl Debug for PaletteColor
source§impl Enum for PaletteColor
impl Enum for PaletteColor
source§impl<V> EnumArray<V> for PaletteColor
impl<V> EnumArray<V> for PaletteColor
source§impl From<PaletteColor> for ColorStyle
impl From<PaletteColor> for ColorStyle
source§fn from(color: PaletteColor) -> Self
fn from(color: PaletteColor) -> Self
Converts to this type from the input type.
source§impl From<PaletteColor> for ColorType
impl From<PaletteColor> for ColorType
source§fn from(color: PaletteColor) -> Self
fn from(color: PaletteColor) -> Self
Converts to this type from the input type.
source§impl From<PaletteColor> for Style
impl From<PaletteColor> for Style
source§fn from(color: PaletteColor) -> Self
fn from(color: PaletteColor) -> Self
Converts to this type from the input type.
source§impl From<PaletteColor> for StyleType
impl From<PaletteColor> for StyleType
source§fn from(color: PaletteColor) -> Self
fn from(color: PaletteColor) -> Self
Converts to this type from the input type.
source§impl FromStr for PaletteColor
impl FromStr for PaletteColor
§type Err = NoSuchColor
type Err = NoSuchColor
The associated error which can be returned from parsing.
source§impl Hash for PaletteColor
impl Hash for PaletteColor
source§impl Index<PaletteColor> for Palette
impl Index<PaletteColor> for Palette
source§impl IndexMut<PaletteColor> for Palette
impl IndexMut<PaletteColor> for Palette
source§impl PartialEq<PaletteColor> for PaletteColor
impl PartialEq<PaletteColor> for PaletteColor
source§fn eq(&self, other: &PaletteColor) -> bool
fn eq(&self, other: &PaletteColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.