Introduction
Introduction Statistics Contact Development Disclaimer Help
init colors using SchemeLast - dmenu - dynamic menu
git clone git://git.suckless.org/dmenu
Log
Files
Refs
README
LICENSE
---
commit 41379f7c39e6aa0a17d7807b22b49ea148f5b0fa
parent 64ab2801fbbbcc028c359080ae4bd546fc871f67
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 3 Nov 2017 21:05:29 +0100
init colors using SchemeLast
this makes it slightly easier to add colors to schemes.
Diffstat:
M dmenu.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git 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);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.