Enum cursive_core::theme::ColorType
source · pub enum ColorType {
Palette(PaletteColor),
Color(Color),
InheritParent,
}
Expand description
Either a color from the palette, or a direct color.
The Default
implementation returns InheritParent
.
Variants§
Palette(PaletteColor)
Uses a color from the application palette.
This is the best way to support themes and achieve a unified look across different views.
Color(Color)
Uses a direct color, independent of the current palette.
InheritParent
Re-uses the color from the parent.
Implementations§
Trait Implementations§
source§impl From<ColorType> for ColorStyle
impl From<ColorType> for ColorStyle
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.