mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
Xresources improvements for default config
This commit is contained in:
parent
c594597596
commit
f6637c640e
24
config.def.h
24
config.def.h
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user