split color configuration into seperate file

This commit is contained in:
randomuser 2024-03-14 07:45:25 -05:00
parent 562d6ff6a9
commit 6094c5f5dd
2 changed files with 29 additions and 29 deletions

28
colors.h Normal file
View File

@ -0,0 +1,28 @@
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */
"#161510",
"#a32810",
"#727a18",
"#a37720",
"#3d6266",
"#7a4955",
"#557a55",
"#8e8463",
/* 8 bright colors */
"#4c4635",
"#cc3214",
"#8e991e",
"#cc9528",
"#4c7b7f",
"#995b6b",
"#6b996b",
"#ccbc8e",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#cccccc",
"#555555",
};

View File

@ -91,35 +91,7 @@ char *termname = "st-256color";
*/
unsigned int tabspaces = 8;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */
"#161510",
"#a32810",
"#727a18",
"#a37720",
"#3d6266",
"#7a4955",
"#557a55",
"#8e8463",
/* 8 bright colors */
"#4c4635",
"#cc3214",
"#8e991e",
"#cc9528",
"#4c7b7f",
"#995b6b",
"#6b996b",
"#ccbc8e",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#cccccc",
"#555555",
};
#include <colors.h>
/*
* Default colors (colorname index)