From c4f1f62459f573da9c15d9b7a4e8fa94974624bc Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 25 Jan 2015 12:14:34 +0100 Subject: vtcol.rs: add definitions for solarized light --- vtcol.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/vtcol.rs b/vtcol.rs index b0bff7d..53268a4 100644 --- a/vtcol.rs +++ b/vtcol.rs @@ -39,13 +39,20 @@ static DEFAULT_COLORS : [&'static str; PALETTE_SIZE] = [ "5555ff", "ff55ff", "55ffff", "ffffff" ]; -static SOLARIZED_COLORS : [&'static str; PALETTE_SIZE] = [ +static SOLARIZED_COLORS_DARK : [&'static str; PALETTE_SIZE] = [ "002b36", "dc322f", "859900", "b58900", "268bd2", "d33682", "2aa198", "eee8d5", "002b36", "cb4b16", "586e75", "657b83", "839496", "6c71c4", "93a1a1", "fdf6e3", ]; +static SOLARIZED_COLORS_LIGHT : [&'static str; PALETTE_SIZE] = [ + "eee8d5", "dc322f", "859900", "b58900", + "268bd2", "d33682", "2aa198", "073642", + "fdf6e3", "cb4b16", "93a1a1", "839496", + "657b83", "6c71c4", "586e75", "002b36", +]; + /* * The palette struct is the type expected by ioctl PIO_CMAP */ @@ -249,8 +256,9 @@ fn main () { let color_set : [[&str; 7]; PALETTE_SIZE]; - let mut pal : Palette = Palette::new(&DEFAULT_COLORS); - //let mut pal : Palette = Palette::new(&SOLARIZED_COLORS); + //let mut pal : Palette = Palette::new(&DEFAULT_COLORS); + let mut pal : Palette = Palette::new(&SOLARIZED_COLORS_DARK); + //let mut pal : Palette = Palette::new(&SOLARIZED_COLORS_LIGHT); println!("{}", pal); //println!("{:?}", pal); let fd = get_console_fd(None).unwrap(); -- cgit v1.2.3