rofi/include/css-colors.h

35 lines
664 B
C
Raw Normal View History

#ifndef ROFI_INCLUDE_CSS_COLORS_H
#define ROFI_INCLUDE_CSS_COLORS_H
2021-08-17 23:16:45 +00:00
#include <stdint.h>
/**
* @defgroup CSSCOLORS CssColors
* @ingroup HELPERS
*
* Lookup table for CSS 4.0 named colors. Like `Navo`.
*
* @{
*/
/**
* Structure of colors.
*/
2021-08-17 23:16:45 +00:00
typedef struct CSSColor {
/** CSS name of the color. */
char *name;
/** BGRA 8 bit color components. */
uint8_t b, g, r, a;
} CSSColor;
/**
2021-08-17 23:16:45 +00:00
* Array with all the named colors. Of type #CSSColor, there are #num_CSSColors
* items in this array.
*/
2018-08-08 13:55:13 +00:00
extern const CSSColor CSSColors[];
/**
* Number of named colors.
*/
extern const unsigned int num_CSSColors;
2020-10-12 19:39:36 +00:00
/** @} */
#endif // ROFI_INCLUDE_CSS_COLORS_H