From 2b4ccf1ef43c99c37a6b82699fc311943d527c62 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 3 Nov 2017 21:05:29 +0100 Subject: [PATCH] init colors using SchemeLast this makes it slightly easier to add colors to schemes. --- dmenubar/dmenu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dmenubar/dmenu.c b/dmenubar/dmenu.c index 85e5060..91330f1 100644 --- a/dmenubar/dmenu.c +++ b/dmenubar/dmenu.c @@ -553,9 +553,8 @@ setup(void) #endif /* init appearance */ - scheme[SchemeNorm] = drw_scm_create(drw, colors[SchemeNorm], 2); - scheme[SchemeSel] = drw_scm_create(drw, colors[SchemeSel], 2); - scheme[SchemeOut] = drw_scm_create(drw, colors[SchemeOut], 2); + 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);