config.def.h: style improvement, use color Scheme enum 3c91eed0
Hiltjo Posthuma · 2016-06-28 17:56 1 file(s) · +5 −5
config.def.h +5 −5
7 7
	"monospace:size=10"
8 8
};
9 9
static const char *prompt      = NULL;      /* -p  option; prompt to the left of input field */
10 -
static const char *colors[][2] = {
11 -
/*     fg         bg       */
12 -
	{ "#bbbbbb", "#222222" }, /* normal */
13 -
	{ "#eeeeee", "#005577" }, /* selected */
14 -
	{ "#000000", "#00ffff" }, /* out */
10 +
static const char *colors[SchemeLast][2] = {
11 +
	/*     fg         bg       */
12 +
	[SchemeNorm] = { "#bbbbbb", "#222222" },
13 +
	[SchemeSel] = { "#eeeeee", "#005577" },
14 +
	[SchemeOut] = { "#000000", "#00ffff" },
15 15
};
16 16
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
17 17
static unsigned int lines      = 0;