NetSurf
nscolour.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 Michael Drake <tlsa@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/** \file
20 * NetSurf UI colours (interface).
21 *
22 * Interface to acquire common colours used throughout NetSurf's interface.
23 */
24
25#ifndef _NETSURF_UTILS_NSCOLOUR_H_
26#define _NETSURF_UTILS_NSCOLOUR_H_
27
28#include "netsurf/types.h"
29
30/**
31 * NetSurf UI colour key.
32 */
60};
61
62/**
63 * NetSurf UI colour table.
64 */
65extern colour nscolours[];
66
67/**
68 * Update the nscolour table from the current nsoptions.
69 *
70 * \return NSERROR_OK on success, or appropriate error otherwise.
71 */
73
74/**
75 * Get a pointer to a stylesheet for nscolours.
76 *
77 * \return NSERROR_OK on success, or appropriate error otherwise.
78 */
79nserror nscolour_get_stylesheet(const char **stylesheet_out);
80
81#endif
nserror
Enumeration of error codes.
Definition: errors.h:29
colour nscolours[]
NetSurf UI colour table.
Definition: nscolour.c:38
nserror nscolour_update(void)
Update the nscolour table from the current nsoptions.
Definition: nscolour.c:132
nserror nscolour_get_stylesheet(const char **stylesheet_out)
Get a pointer to a stylesheet for nscolours.
Definition: nscolour.c:206
nscolour
NetSurf UI colour key.
Definition: nscolour.h:33
@ NSCOLOUR_BUTTON_BG
Definition: nscolour.h:57
@ NSCOLOUR_WIN_EVEN_FG
Definition: nscolour.h:44
@ NSCOLOUR_TEXT_INPUT_FG
Definition: nscolour.h:51
@ NSCOLOUR_TEXT_INPUT_FG_SUBTLE
Definition: nscolour.h:52
@ NSCOLOUR_WIN_ODD_FG_FADED
Definition: nscolour.h:38
@ NSCOLOUR_WIN_ODD_BG
Definition: nscolour.h:34
@ NSCOLOUR_WIN_ODD_BG_HOVER
Definition: nscolour.h:35
@ NSCOLOUR_WIN_ODD_FG_GOOD
Definition: nscolour.h:39
@ NSCOLOUR_WIN_EVEN_BORDER
Definition: nscolour.h:49
@ NSCOLOUR_SEL_FG
Definition: nscolour.h:54
@ NSCOLOUR_WIN_EVEN_BG_HOVER
Definition: nscolour.h:43
@ NSCOLOUR_BUTTON_FG
Definition: nscolour.h:58
@ NSCOLOUR_WIN_EVEN_FG_SUBTLE
Definition: nscolour.h:45
@ NSCOLOUR_SEL_BG
Definition: nscolour.h:53
@ NSCOLOUR_WIN_ODD_BORDER
Definition: nscolour.h:41
@ NSCOLOUR_WIN_ODD_FG_SUBTLE
Definition: nscolour.h:37
@ NSCOLOUR__COUNT
Definition: nscolour.h:59
@ NSCOLOUR_SCROLL_WELL
Definition: nscolour.h:56
@ NSCOLOUR_TEXT_INPUT_BG
Definition: nscolour.h:50
@ NSCOLOUR_WIN_EVEN_FG_BAD
Definition: nscolour.h:48
@ NSCOLOUR_WIN_EVEN_BG
Definition: nscolour.h:42
@ NSCOLOUR_WIN_ODD_FG_BAD
Definition: nscolour.h:40
@ NSCOLOUR_WIN_EVEN_FG_FADED
Definition: nscolour.h:46
@ NSCOLOUR_WIN_EVEN_FG_GOOD
Definition: nscolour.h:47
@ NSCOLOUR_WIN_ODD_FG
Definition: nscolour.h:36
@ NSCOLOUR_SEL_FG_SUBTLE
Definition: nscolour.h:55
NetSurf types.
uint32_t colour
Colour type: XBGR.
Definition: types.h:35