From 92e5d3b964e10d816baecd1dfd8afd5bae725fdd Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 28 Jun 2016 17:56:25 +0200 Subject: [PATCH] config.def.h: style improvement, use color Scheme enum --- dmenubar/config.def.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dmenubar/config.def.h b/dmenubar/config.def.h index 5ac2af8..1edb647 100644 --- a/dmenubar/config.def.h +++ b/dmenubar/config.def.h @@ -7,11 +7,11 @@ static const char *fonts[] = { "monospace:size=10" }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ -static const char *colors[][2] = { -/* fg bg */ - { "#bbbbbb", "#222222" }, /* normal */ - { "#eeeeee", "#005577" }, /* selected */ - { "#000000", "#00ffff" }, /* out */ +static const char *colors[SchemeLast][2] = { + /* fg bg */ + [SchemeNorm] = { "#bbbbbb", "#222222" }, + [SchemeSel] = { "#eeeeee", "#005577" }, + [SchemeOut] = { "#000000", "#00ffff" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0;