diff options
| author | Philipp Gesang <phg42.2a@gmail.com> | 2015-01-25 12:14:34 +0100 | 
|---|---|---|
| committer | Philipp Gesang <phg42.2a@gmail.com> | 2015-01-25 12:14:34 +0100 | 
| commit | c4f1f62459f573da9c15d9b7a4e8fa94974624bc (patch) | |
| tree | 200190accb13429cda6c9549ac6da843716ca6e3 | |
| parent | 3ba6bd4ae0d52d43b2bb4ffda76720e1316dae27 (diff) | |
| download | vtcol-c4f1f62459f573da9c15d9b7a4e8fa94974624bc.tar.gz | |
vtcol.rs: add definitions for solarized light
| -rw-r--r-- | vtcol.rs | 14 | 
1 files changed, 11 insertions, 3 deletions
@@ -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();  | 
