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.
This commit is contained in:
Ben Harris
2022-12-08 11:41:09 +00:00
parent 0b036c9e79
commit 0d36b471d8

View File

@ -2443,7 +2443,7 @@ static float *game_colours(frontend *fe, int *ncolours)
ret[COL_TRACK * 3 + i] = 0.5F; ret[COL_TRACK * 3 + i] = 0.5F;
ret[COL_CLUE * 3 + i] = 0.0F; ret[COL_CLUE * 3 + i] = 0.0F;
ret[COL_GRID * 3 + i] = 0.75F; 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; 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; 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 */ /* Draw tracks themselves */