From 18f88c1446db7094a0e26b8dfbbf224c5af1db8f Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Sat, 5 Nov 2016 17:06:43 +0100 Subject: define colors only once. --- atom_inspector_nk.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'atom_inspector_nk.c') diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c index 22cbf57..a104f0c 100644 --- a/atom_inspector_nk.c +++ b/atom_inspector_nk.c @@ -16,23 +16,11 @@ */ #include +#include #include #include -#define ful 0xff -#define one 0xbb -#define two 0x66 -#define non 0x0 -static const struct nk_color white = {.r = one, .g = one, .b = one, .a = ful}; -static const struct nk_color gray = {.r = two, .g = two, .b = two, .a = ful}; -static const struct nk_color yellow = {.r = one, .g = one, .b = non, .a = ful}; -static const struct nk_color magenta = {.r = one, .g = two, .b = one, .a = ful}; -static const struct nk_color green = {.r = non, .g = one, .b = non, .a = ful}; -static const struct nk_color blue = {.r = non, .g = one, .b = one, .a = ful}; -static const struct nk_color orange = {.r = one, .g = two, .b = non, .a = ful}; -static const struct nk_color violet = {.r = two, .g = two, .b = one, .a = ful}; - #define NS_RDF (const uint8_t*)"http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define NS_RDFS (const uint8_t*)"http://www.w3.org/2000/01/rdf-schema#" #define NS_XSD (const uint8_t*)"http://www.w3.org/2001/XMLSchema#" -- cgit v1.2.1