]> git.mdlowis.com Git - proto/anvil.git/commitdiff
changed cursor color to better match the theme
authorMichael D. Lowis <mike@mdlowis.com>
Thu, 2 Apr 2020 20:59:38 +0000 (16:59 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Thu, 2 Apr 2020 20:59:38 +0000 (16:59 -0400)
anvil.c

diff --git a/anvil.c b/anvil.c
index 91372f934df97a93451acf33e2151bee565c1251..2f06ab4a89db1fb17f240a0e68f5dd24951f2946 100644 (file)
--- 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);
 }