wallust-themes - built in colorschemes for wallust
This is a simple crate that stores consts colorschemes in arrays (slices).
Indexing in either of COLS_VALUE or COLS_KEY will result in the array
values (see the spec) or the name of the colorscheme, that's why they both have
the same len()ght.
NOTE: COLS_VALUE and COLS_KEY will have the same LEN as the number of files in colorschemes/.
Spec
COLS_VALUE will always store the variables in this order (starting with index 0):
color0color1color2color3color4color5color6color7color8color9color10color11color12color13color14color15backgroundforegroundcursor
Making a total of 19 items. Each one of them is a u32 number that represents
[u8; 3] and can be decoded by .to_le_bytes()
Example
Remember that COLS_VALUE is an array (quantity of coloschemes/) that
contains arrays (19 u32s, as defined above) itself.
use COLS_VALUE;
let some_color = COLS_VALUE; //random color
// a (alpha) will always be 0, since we don't use RGBA, but RGB
let = some_color.to_le_bytes;
New Themes
If you feel like a very well known colorscheme is missing, you should request it's addition with a json file following this format: