make colors configurable
authorMarkus Teich <markus.teich@stusta.mhn.de>
Wed, 4 Nov 2015 00:43:13 +0000 (01:43 +0100)
committerMarkus Teich <markus.teich@stusta.mhn.de>
Wed, 4 Nov 2015 00:43:13 +0000 (01:43 +0100)
config.def.h
sent.c

index 364db70dd67d95f0eb1a72c6c08074a277e24e44..27f0c669cd10180467e70611ef16e20a5bb01a51 100644 (file)
@@ -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;
diff --git a/sent.c b/sent.c
index 2754eb045c8f857529573e7a6cd38599ebc82ae7..74412baeca1ca3fe2aa9136e057e6360c16376b6 100644 (file)
--- a/sent.c
+++ b/sent.c
@@ -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();