Do some cleanup and change the default colors to match the one in the .Xresources file

This commit is contained in:
David Holland 2020-09-10 21:47:14 +02:00
parent ad5e5c4004
commit d9d1180f74
Signed by: DustVoice
GPG key ID: 47068995A14EDCA9
2 changed files with 12 additions and 11 deletions

View file

@ -104,17 +104,17 @@ static const char *colorname[] = {
[4] = "#bd93f9", /* blue */
[5] = "#ff79c6", /* magenta */
[6] = "#8be9fd", /* cyan */
[7] = "#bbbbbb", /* white */
[7] = "#bfbfbf", /* white */
/* 8 bright colors */
[8] = "#44475a", /* black */
[9] = "#ff5555", /* red */
[10] = "#50fa7b", /* green */
[11] = "#f1fa8c", /* yellow */
[12] = "#bd93f9", /* blue */
[13] = "#ff79c6", /* magenta */
[14] = "#8be9fd", /* cyan */
[15] = "#ffffff", /* white */
[8] = "#4d4d4d", /* black */
[9] = "#ff6e67", /* red */
[10] = "#5af78e", /* green */
[11] = "#f4f99d", /* yellow */
[12] = "#caa9fa", /* blue */
[13] = "#ff92d0", /* magenta */
[14] = "#9aedfe", /* cyan */
[15] = "#e6e6e6", /* white */
/* special colors */
[256] = "#282a36", /* background */
@ -206,8 +206,8 @@ ResourcePref resources[] = {
{ "color15", STRING, &colorname[15] },
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "cursor", STRING, &colorname[258] },
{ "text", STRING, &colorname[259] },
{ "cursor", STRING, &colorname[258] },
{ "text", STRING, &colorname[259] },
{ "termName", STRING, &termname },
{ "shell", STRING, &shell },
{ "tabspaces", INTEGER, &tabspaces },

1
st.h
View file

@ -126,3 +126,4 @@ extern unsigned int tabspaces;
extern unsigned int defaultfg;
extern unsigned int defaultbg;
extern unsigned int defaultcs;
extern unsigned int defaultrcs;