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,
|
[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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user