From f6637c640edde65230bfbc8388fe3481985d93c9 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Fri, 22 May 2020 11:47:04 +0200 Subject: [PATCH] Xresources improvements for default config --- config.def.h | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/config.def.h b/config.def.h index 45f1643..a5723d6 100644 --- a/config.def.h +++ b/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