aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-05-21 21:51:14 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-06-03 19:13:15 +0200
commit44c7de3dcf49ee568863f55610f40c7a05b4dfe7 (patch)
tree1a3e45f6e616ff256a0d195272d68ca69f5c153f /config.def.h
parentb3d9451c2ddfad7c1b10e9a868afed4d92b37e41 (diff)
downloaddmenu-44c7de3dcf49ee568863f55610f40c7a05b4dfe7.tar.gz
dmenu-44c7de3dcf49ee568863f55610f40c7a05b4dfe7.tar.bz2
dmenu-44c7de3dcf49ee568863f55610f40c7a05b4dfe7.zip
import new drw from libsl and minor fixes.
- extract drawitem function (code deduplication) - fix bug where inputw was not correctly calculated from the widest item, but just from the one with the longest strlen() which is not the same. It's better now, but does not account for fallback fonts, since it would be too slow to calculate all the correct item widths on startup. - minor code style fixes (indentation, useless line breaks)
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h
index dcffd38..5ac2af8 100644
--- a/config.def.h
+++ b/config.def.h
@@ -7,12 +7,12 @@ static const char *fonts[] = {
"monospace:size=10"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
-static const char *normbgcolor = "#222222"; /* -nb option; normal background */
-static const char *normfgcolor = "#bbbbbb"; /* -nf option; normal foreground */
-static const char *selbgcolor = "#005577"; /* -sb option; selected background */
-static const char *selfgcolor = "#eeeeee"; /* -sf option; selected foreground */
-static const char *outbgcolor = "#00ffff";
-static const char *outfgcolor = "#000000";
+static const char *colors[][2] = {
+/* fg bg */
+ { "#bbbbbb", "#222222" }, /* normal */
+ { "#eeeeee", "#005577" }, /* selected */
+ { "#000000", "#00ffff" }, /* out */
+};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;