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