ref: 0d36b471d831535e778016dd64ded00900ee6af2
parent: 0b036c9e79578cec5425aaca1b1af13a4ae0d937
author: Ben Harris <bjh21@bjh21.me.uk>
date: Thu Dec 8 06:41:09 EST 2022
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.
--- a/tracks.c
+++ b/tracks.c
@@ -2443,7 +2443,7 @@
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 @@
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 */