about summary refs log tree commit diff
path: root/config.def.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-06-28 17:56:25 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-06-28 17:56:25 +0200
commit3c91eed0fb74657c3fa25bc4fd65cd0aa88464c0 (patch)
tree62173ef232c37cf5bb833514805a91fcea6c5188 /config.def.h
parentfix: Do not crash on e.g. dmenu < /dev/null (diff)
downloaddmenu-3c91eed0fb74657c3fa25bc4fd65cd0aa88464c0.tar.gz
dmenu-3c91eed0fb74657c3fa25bc4fd65cd0aa88464c0.tar.bz2
dmenu-3c91eed0fb74657c3fa25bc4fd65cd0aa88464c0.zip
config.def.h: style improvement, use color Scheme enum
Diffstat (limited to '')
-rw-r--r--config.def.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index 5ac2af8..1edb647 100644
--- a/config.def.h
+++ b/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;