projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64ab280
)
init colors using SchemeLast
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 3 Nov 2017 20:05:29 +0000
(21:05 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 3 Nov 2017 20:05:29 +0000
(21:05 +0100)
this makes it slightly easier to add colors to schemes.
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index 85e50605c09cd15a1e90180928ea1da7af8feee4..91330f191f7b219aff9217c1e20bf51afeb769c4 100644
(file)
--- a/
dmenu.c
+++ b/
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);