Enum cursive::theme::PaletteColor
[−]
[src]
pub enum PaletteColor { Background, Shadow, View, Primary, Secondary, Tertiary, TitlePrimary, TitleSecondary, Highlight, HighlightInactive, }
Color entry in a palette.
Each ColorRole
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.
Methods
impl PaletteColor
[src]
pub fn resolve(self, palette: &Palette) -> Color
[src]
Given a palette, resolve self
to a concrete color.
Trait Implementations
impl From<PaletteColor> for Style
[src]
fn from(color: PaletteColor) -> Self
[src]
Performs the conversion.
impl From<PaletteColor> for ColorStyle
[src]
fn from(color: PaletteColor) -> Self
[src]
Performs the conversion.
impl From<PaletteColor> for ColorType
[src]
fn from(color: PaletteColor) -> Self
[src]
Performs the conversion.
impl Clone for PaletteColor
[src]
fn clone(&self) -> PaletteColor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for PaletteColor
[src]
impl Debug for PaletteColor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for PaletteColor
[src]
fn eq(&self, __arg_0: &PaletteColor) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for PaletteColor
[src]
impl Hash for PaletteColor
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<V> Internal<V> for PaletteColor
[src]
type Array = [V; 10]
Representation of an enum map for type V
, usually an array.