2017-05-15 20:46:33 +00:00
|
|
|
#ifndef ROFI_INCLUDE_CSS_COLORS_H
|
|
|
|
#define ROFI_INCLUDE_CSS_COLORS_H
|
|
|
|
|
2018-06-12 09:28:31 +00:00
|
|
|
/**
|
|
|
|
* @defgroup CSSCOLORS CssColors
|
|
|
|
* @ingroup HELPERS
|
|
|
|
*
|
|
|
|
* Lookup table for CSS 4.0 named colors. Like `Navo`.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Structure of colors.
|
|
|
|
*/
|
2017-05-15 20:46:33 +00:00
|
|
|
typedef struct CSSColor
|
|
|
|
{
|
2018-06-12 09:28:31 +00:00
|
|
|
/** CSS name of the color. */
|
2017-05-15 20:46:33 +00:00
|
|
|
char *name;
|
2018-06-12 09:28:31 +00:00
|
|
|
/** BGRA 8 bit color components. */
|
2017-05-15 20:46:33 +00:00
|
|
|
uint8_t b, g, r, a;
|
|
|
|
}CSSColor;
|
|
|
|
|
2018-06-12 09:28:31 +00:00
|
|
|
/**
|
|
|
|
* Array with all the named colors. Of type #CSSColor, there are #num_CSSColors items in this array.
|
|
|
|
*/
|
2017-05-15 20:46:33 +00:00
|
|
|
extern const CSSColor CSSColors[];
|
2018-06-12 09:28:31 +00:00
|
|
|
/**
|
|
|
|
* Number of named colors.
|
|
|
|
*/
|
2017-05-15 20:46:33 +00:00
|
|
|
extern const unsigned int num_CSSColors;
|
2018-06-12 09:28:31 +00:00
|
|
|
/* @} */
|
2017-05-15 20:46:33 +00:00
|
|
|
#endif // ROFI_INCLUDE_CSS_COLORS_H
|