mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 04:02:34 +03:00
NS colour: Add colour scheme for text inputs.
This commit is contained in:
parent
3626a5654e
commit
994827ab82
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user