Xresources improvements for default config

This commit is contained in:
bakkeby 2020-05-22 11:47:04 +02:00
parent c594597596
commit f6637c640e
1 changed files with 11 additions and 13 deletions

View File

@ -147,11 +147,10 @@ static const char *colorname[] = {
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#cccccc",
"#555555",
#if ALPHA_PATCH
"black"
#endif // ALPHA_PATCH
"#add8e6", /* 256 -> cursor */
"#555555", /* 257 -> rev cursor*/
"#000000", /* 258 -> bg */
"#e5e5e5", /* 259 -> fg */
};
@ -159,12 +158,8 @@ static const char *colorname[] = {
* Default colors (colorname index)
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 7;
#if ALPHA_PATCH
unsigned int defaultfg = 259;
unsigned int defaultbg = 258;
#else
unsigned int defaultbg = 0;
#endif // ALPHA_PATCH
unsigned int defaultcs = 256;
unsigned int defaultrcs = 257;
@ -226,9 +221,9 @@ ResourcePref resources[] = {
{ "color13", STRING, &colorname[13] },
{ "color14", STRING, &colorname[14] },
{ "color15", STRING, &colorname[15] },
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "cursorColor", STRING, &colorname[258] },
{ "background", STRING, &colorname[258] },
{ "foreground", STRING, &colorname[259] },
{ "cursorColor", STRING, &colorname[256] },
{ "termname", STRING, &termname },
{ "shell", STRING, &shell },
{ "minlatency", INTEGER, &minlatency },
@ -239,6 +234,9 @@ ResourcePref resources[] = {
{ "borderpx", INTEGER, &borderpx },
{ "cwscale", FLOAT, &cwscale },
{ "chscale", FLOAT, &chscale },
#if ALPHA_PATCH
{ "alpha", FLOAT, &alpha },
#endif // ALPHA_PATCH
};
#endif // XRESOURCES_PATCH