Add darkman patch
a patch to choose between two color themes by executing a command
This commit is contained in:
parent
292f3ae44d
commit
816061be47
3 changed files with 74 additions and 3 deletions
38
config.def.h
38
config.def.h
|
|
@ -203,6 +203,44 @@ static const char *colorname[] = {
|
|||
"#e5e5e5", /* 259 -> fg */
|
||||
};
|
||||
|
||||
#if DARKMAN_PATCH
|
||||
#define colorname_len (sizeof(colorname) / sizeof(char *))
|
||||
|
||||
enum theme {
|
||||
THEME_LIGHT,
|
||||
THEME_DARK,
|
||||
THEME_NUM,
|
||||
};
|
||||
|
||||
/* Terminal colors (16 first used in escape sequence) */
|
||||
static const char *colornames[THEME_NUM][colorname_len] = {
|
||||
{ }, {
|
||||
"#1a1a1a", /* hard contrast: #1d2021 / soft contrast: #32302f */
|
||||
"#f4005f",
|
||||
"#98e024",
|
||||
"#fa8419",
|
||||
"#9d65ff",
|
||||
"#f4005f",
|
||||
"#58d1eb",
|
||||
"#c4c5b5",
|
||||
"#625e4c",
|
||||
"#f4005f",
|
||||
"#98e024",
|
||||
"#e0d561",
|
||||
"#9d65ff",
|
||||
"#f4005f",
|
||||
"#58d1eb",
|
||||
"#f6f6ef",
|
||||
[255] = 0,
|
||||
/* more colors can be added after 255 to use with DefaultXX */
|
||||
"#aaaaaa", /* 256 -> cursor */
|
||||
"#555555", /* 257 -> rev cursor*/
|
||||
"#000000", /* 258 -> bg */
|
||||
"#ffffff", /* 259 -> fg */
|
||||
}};
|
||||
|
||||
#endif // DARKMAN_PATCH
|
||||
|
||||
|
||||
/*
|
||||
* Default colors (colorname index)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue