NS colour: Add colour scheme for text inputs.

This commit is contained in:
Michael Drake 2020-05-23 21:31:50 +01:00
parent 3626a5654e
commit 994827ab82
2 changed files with 11 additions and 0 deletions

View File

@ -183,6 +183,14 @@ nserror nscolour_update(void)
return res;
}
nscolours[NSCOLOUR_TEXT_INPUT_BG] =
colour_to_bw_nearest(nscolours[NSCOLOUR_WIN_EVEN_BG]);
nscolours[NSCOLOUR_TEXT_INPUT_FG] =
colour_to_bw_nearest(nscolours[NSCOLOUR_WIN_EVEN_FG]);
nscolours[NSCOLOUR_TEXT_INPUT_FG_SUBTLE] =
blend_colour(nscolours[NSCOLOUR_TEXT_INPUT_BG],
nscolours[NSCOLOUR_TEXT_INPUT_FG]);
return NSERROR_OK;
}

View File

@ -47,6 +47,9 @@ enum nscolour {
NSCOLOUR_WIN_EVEN_FG_GOOD,
NSCOLOUR_WIN_EVEN_FG_BAD,
NSCOLOUR_WIN_EVEN_BORDER,
NSCOLOUR_TEXT_INPUT_BG,
NSCOLOUR_TEXT_INPUT_FG,
NSCOLOUR_TEXT_INPUT_FG_SUBTLE,
NSCOLOUR_SEL_BG,
NSCOLOUR_SEL_FG,
NSCOLOUR_SEL_FG_SUBTLE,