From: Michael D. Lowis Date: Thu, 2 Apr 2020 20:59:38 +0000 (-0400) Subject: changed cursor color to better match the theme X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=fe089ce97df0ec034e3598fde9f296a4b6293045;p=proto%2Fanvil.git changed cursor color to better match the theme --- diff --git a/anvil.c b/anvil.c index 91372f9..2f06ab4 100644 --- a/anvil.c +++ b/anvil.c @@ -203,15 +203,15 @@ static void xkeypress(XEvent* e) static void init_cursors(void) { - XColor red, white, exact; + XColor csr_bdr, csr_fill; Colormap cmap = DefaultColormap(X.disp, X.screen); X.csr_root = XCreateFontCursor(X.disp, XC_left_ptr); - XAllocNamedColor(X.disp, cmap, "red", &red, &exact); - XAllocNamedColor(X.disp, cmap, "white", &white, &exact); + XParseColor(X.disp, cmap, "rgb:ff/77/00", &csr_fill); + XParseColor(X.disp, cmap, "rgb:00/00/00", &csr_bdr); X.csr_point = XCreateFontCursor(X.disp, XC_left_ptr); - XRecolorCursor(X.disp, X.csr_point, &red, &white); + XRecolorCursor(X.disp, X.csr_point, &csr_fill, &csr_bdr); X.csr_move = XCreateFontCursor(X.disp, XC_fleur); - XRecolorCursor(X.disp, X.csr_move, &red, &white); + XRecolorCursor(X.disp, X.csr_move, &csr_fill, &csr_bdr); XDefineCursor(X.disp, X.root, X.csr_root); }