pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 8033e2eeb9d2f810f0e763df9fb601b1d968ad48
Parent: 505181293439fe24f2ef608add2c679d53c9add6
Author: Hiltjo Posthuma
Date:   Fri,  3 Nov 2017 21:05:29 +0100

init colors using SchemeLast

this makes it slightly easier to add colors to schemes.

Diffstat:
Mpinentry-dmenu.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c @@ -282,11 +282,9 @@ setup(void) { int a, j, di, n, area = 0; #endif - /* Init appearance */ - scheme[SchemePrompt] = drw_scm_create(drw, colors[SchemePrompt], 2); - scheme[SchemeNormal] = drw_scm_create(drw, colors[SchemeNormal], 2); - scheme[SchemeSelect] = drw_scm_create(drw, colors[SchemeSelect], 2); - scheme[SchemeDesc] = drw_scm_create(drw, colors[SchemeDesc], 2); + /* init appearance */ + for (j = 0; j < SchemeLast; j++) + scheme[j] = drw_scm_create(drw, colors[j], 2); clip = XInternAtom(dpy, "CLIPBOARD", False); utf8 = XInternAtom(dpy, "UTF8_STRING", False);