34#define colour_list_len ((NSOPTION_SYS_COLOUR_END - NSOPTION_SYS_COLOUR_START) + 1)
53 if (lwc_intern_string(opt->
key +
SLEN(
"sys_colour_"),
101 if (lwc_string_caseless_isequal(name,
103 &match) == lwc_error_ok && match) {
#define NSOPTION_SYS_COLOUR_START
nserror
Enumeration of error codes.
@ NSERROR_INIT_FAILED
Initialisation failed.
@ NSERROR_INVALID
Invalid data.
@ NSERROR_NOMEM
Memory exhaustion.
#define ns_color_to_nscss(c)
Convert a NetSurf color to a CSS colour primitive.
Interface to utility string handling.
union nsoption_s::@149 value
nserror ns_system_colour_char(const char *name, colour *colour_out)
Obtain a system colour from a name.
css_error ns_system_colour(void *pw, lwc_string *name, css_color *colour)
css callback to obtain named system colour.
static lwc_string ** ns_system_colour_pw
static lwc_string * colour_list[colour_list_len]
nserror ns_system_colour_init(void)
Initialise the system colours.
void ns_system_colour_finalize(void)
release any resources associated with the system colours.
Interface to system colour values.
uint32_t colour
Colour type: XBGR.
struct nsoption_s * nsoptions
global active option table.
Option reading and saving interface.
Interface to a number of general purpose functionality.
#define SLEN(x)
Calculate length of constant C string.