From 0d36b471d831535e778016dd64ded00900ee6af2 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 8 Dec 2022 11:41:09 +0000 Subject: [PATCH] tracks: Make the keyboard cursor more visible The former grey was almost indistinguishable from its background colours even on a good screen. I've separated the cursor colour from the grid colour and made it a lot darker. This gives a contrast ratio over 3.0 even against a darkened tile. The cursor is still hard to see against trackwork, so maybe something that isn't grey would be even better. --- tracks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracks.c b/tracks.c index ae013ac..ce2d505 100644 --- a/tracks.c +++ b/tracks.c @@ -2443,7 +2443,7 @@ static float *game_colours(frontend *fe, int *ncolours) ret[COL_TRACK * 3 + i] = 0.5F; ret[COL_CLUE * 3 + i] = 0.0F; ret[COL_GRID * 3 + i] = 0.75F; - ret[COL_CURSOR * 3 + i] = 0.6F; + ret[COL_CURSOR * 3 + i] = 0.3F; ret[COL_ERROR_BACKGROUND * 3 + i] = 1.0F; } @@ -2665,7 +2665,7 @@ static void draw_square(drawing *dr, game_drawstate *ds, curx = ox + TILE_SIZE - off; curw = 2*off + 1; } - draw_rect_outline(dr, curx, cury, curw, curh, COL_GRID); + draw_rect_outline(dr, curx, cury, curw, curh, COL_CURSOR); } /* Draw tracks themselves */