summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2015-01-25 12:14:34 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2015-01-25 12:14:34 +0100
commitc4f1f62459f573da9c15d9b7a4e8fa94974624bc (patch)
tree200190accb13429cda6c9549ac6da843716ca6e3
parent3ba6bd4ae0d52d43b2bb4ffda76720e1316dae27 (diff)
downloadvtcol-c4f1f62459f573da9c15d9b7a4e8fa94974624bc.tar.gz
vtcol.rs: add definitions for solarized light
-rw-r--r--vtcol.rs14
1 files 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();