diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2015-11-04 01:43:13 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2015-11-04 01:43:13 +0100 |
commit | 9ab88b5935b722021c2aed2d2a417fd83226ff64 (patch) | |
tree | 8e51256001a76ee148832b1d6e0a2f3260219bb1 | |
parent | fc82374b03b5b2fd9b9770163184d3747a1ccd26 (diff) |
make colors configurable
-rw-r--r-- | config.def.h | 3 | ||||
-rw-r--r-- | sent.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 364db70..27f0c66 100644 --- a/config.def.h +++ b/config.def.h @@ -8,6 +8,9 @@ static char *fontfallbacks[] = { #define NUMFONTSCALES 30 #define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */ +static const char *fgcol = "#000000"; +static const char *bgcol = "#FFFFFF"; + /* how much screen estate is to be used at max for the content */ static float usablewidth = 0.75; static float usableheight = 0.75; @@ -522,7 +522,7 @@ void xinit() if (!(d = drw_create(xw.dpy, xw.scr, xw.win, xw.w, xw.h))) die("Can't create drawing context."); - sc = drw_scm_create(d, "#000000", "#FFFFFF"); + sc = drw_scm_create(d, fgcol, bgcol); drw_setscheme(d, sc); xloadfonts(); |