init colors using SchemeLast 41379f7c
this makes it slightly easier to add colors to schemes.
Hiltjo Posthuma · 2017-11-03 21:05 1 file(s) · +2 −3
dmenu.c +2 −3
553 553
#endif
554 554
555 555
	/* init appearance */
556 -
	scheme[SchemeNorm] = drw_scm_create(drw, colors[SchemeNorm], 2);
557 -
	scheme[SchemeSel] = drw_scm_create(drw, colors[SchemeSel], 2);
558 -
	scheme[SchemeOut] = drw_scm_create(drw, colors[SchemeOut], 2);
556 +
	for (j = 0; j < SchemeLast; j++)
557 +
		scheme[j] = drw_scm_create(drw, colors[j], 2);
559 558
560 559
	clip = XInternAtom(dpy, "CLIPBOARD",   False);
561 560
	utf8 = XInternAtom(dpy, "UTF8_STRING", False);