diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-08 11:41:09 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-08 11:54:23 +0000 |
| commit | 0d36b471d831535e778016dd64ded00900ee6af2 (patch) | |
| tree | f5720ae708abcebd16edca30f4bb6cf83c50e835 | |
| parent | 0b036c9e79578cec5425aaca1b1af13a4ae0d937 (diff) | |
| download | puzzles-0d36b471d831535e778016dd64ded00900ee6af2.zip puzzles-0d36b471d831535e778016dd64ded00900ee6af2.tar.gz puzzles-0d36b471d831535e778016dd64ded00900ee6af2.tar.bz2 puzzles-0d36b471d831535e778016dd64ded00900ee6af2.tar.xz | |
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.
| -rw-r--r-- | tracks.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |