diff --git a/config.h b/config.h index 25dc7d9..8453667 100644 --- a/config.h +++ b/config.h @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ +#include "mocha.h" + /* * appearance * @@ -93,47 +95,6 @@ char *termname = "st-256color"; */ unsigned int tabspaces = 8; -/* Terminal colors (16 first used in escape sequence) */ -static const char *colorname[] = { - /* 8 normal colors */ - "black", - "red3", - "green3", - "yellow3", - "blue2", - "magenta3", - "cyan3", - "gray90", - - /* 8 bright colors */ - "gray50", - "red", - "green", - "yellow", - "#5c5cff", - "magenta", - "cyan", - "white", - - [255] = 0, - - /* more colors can be added after 255 to use with DefaultXX */ - "#cccccc", - "#555555", - "gray90", /* default foreground colour */ - "black", /* default background colour */ -}; - - -/* - * Default colors (colorname index) - * foreground, background, cursor, reverse cursor - */ -unsigned int defaultfg = 258; -unsigned int defaultbg = 259; -unsigned int defaultcs = 256; -static unsigned int defaultrcs = 257; - /* * Default shape of cursor * 2: Block ("█") diff --git a/mocha.h b/mocha.h new file mode 100644 index 0000000..26bd09b --- /dev/null +++ b/mocha.h @@ -0,0 +1,36 @@ +/* Terminal colors (16 first used in escape sequence) */ +static const char *colorname[] = { + /* 8 normal colors */ + "#45475A", + "#F38BA8", + "#A6E3A1", + "#F9E2AF", + "#89B4FA", + "#F5C2E7", + "#94E2D5", + "#BAC2DE", + + /* 8 bright colors */ + "#585B70", + "#F38BA8", + "#A6E3A1", + "#F9E2AF", + "#89B4FA", + "#F5C2E7", + "#94E2D5", + "#A6ADC8", + +[256] = "#CDD6F4", /* default foreground colour */ +[257] = "#1E1E2E", /* default background colour */ +[258] = "#F5E0DC", /*575268*/ + +}; + + +/* + * foreground, background, cursor, reverse cursor + */ +unsigned int defaultfg = 256; +unsigned int defaultbg = 257; +unsigned int defaultcs = 258; +static unsigned int defaultrcs = 258;