all repos — barito @ 42b4968b290ae85709706782813825fb6a32c490

an x11 bar

Fix drawing bg color
Anirudh Oppiliappan x@icyphox.sh
Sat, 24 Apr 2021 20:53:03 +0530
commit

42b4968b290ae85709706782813825fb6a32c490

parent

e59e490a9cebbdc06b442d5ec65a0dd2bd9d98b8

2 files changed, 5 insertions(+), 5 deletions(-)

jump to
M barito.cbarito.c

@@ -18,7 +18,7 @@

static unsigned long alloc_color(const char *s) { XColor color; - if(!XAllocNamedColor(dpy, colormap, s, &color, &color)) + if (!XAllocNamedColor(dpy, colormap, s, &color, &color)) errx(1, "cannot allocate color"); return color.pixel;

@@ -75,9 +75,9 @@ Pixmap pix;

pix = XCreatePixmap(dpy, root, w, h, depth); - XSetForeground(dpy, gc, WhitePixel(dpy, screen)); + XSetForeground(dpy, gc, alloc_color(bg)); XFillRectangle(dpy, pix, gc, 0, 0, w, h); - XSetForeground(dpy, gc, BlackPixel(dpy, screen)); + XSetForeground(dpy, gc, alloc_color(bg)); return pix; }
M config.hconfig.h

@@ -1,5 +1,5 @@

static char *fontname = "SF Mono:size=12"; -static char *fg = "#000000"; -static char *bg = "#676767"; +static char *fg = "#f4f4f4"; +static char *bg = "#232323"; #define HEIGHT 30 #define WIDTH 1920