Type Definition cursive::theme::Palette [] [src]

type Palette = EnumMap<PaletteColor, Color>;

Color configuration for the application.

Assign each color role an actual color.

It implements Index and IndexMut to access and modify this mapping:

Example

use cursive::theme::PaletteColor::*;
use cursive::theme::Color::*;
use cursive::theme::BaseColor::*;

let mut palette = theme::default_palette();

assert_eq!(palette[Background], Dark(Blue));
palette[Shadow] = Light(Red);