diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-11-03 21:05:29 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-11-03 21:05:29 +0100 |
commit | 41379f7c39e6aa0a17d7807b22b49ea148f5b0fa (patch) | |
tree | edc2a36f66e6e5e9364e11dc74f0c1632ac8d2ad | |
parent | 64ab2801fbbbcc028c359080ae4bd546fc871f67 (diff) |
init colors using SchemeLast
this makes it slightly easier to add colors to schemes.
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -553,9 +553,8 @@ setup(void) | |||
553 | #endif | 553 | #endif |
554 | 554 | ||
555 | /* init appearance */ | 555 | /* init appearance */ |
556 | scheme[SchemeNorm] = drw_scm_create(drw, colors[SchemeNorm], 2); | 556 | for (j = 0; j < SchemeLast; j++) |
557 | scheme[SchemeSel] = drw_scm_create(drw, colors[SchemeSel], 2); | 557 | scheme[j] = drw_scm_create(drw, colors[j], 2); |
558 | scheme[SchemeOut] = drw_scm_create(drw, colors[SchemeOut], 2); | ||
559 | 558 | ||
560 | clip = XInternAtom(dpy, "CLIPBOARD", False); | 559 | clip = XInternAtom(dpy, "CLIPBOARD", False); |
561 | utf8 = XInternAtom(dpy, "UTF8_STRING", False); | 560 | utf8 = XInternAtom(dpy, "UTF8_STRING", False); |