From 4418741fc601663c7659a31766d76d2671f06b7e Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 7 Aug 2016 14:04:04 -0300 Subject: [PATCH] eeshow/style.h, style.c: add Green, Red, Green2, Green3, and a user light grey --- eeshow/style.c | 7 +++++++ eeshow/style.h | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/eeshow/style.c b/eeshow/style.c index 7f86798..3f9e472 100644 --- a/eeshow/style.c +++ b/eeshow/style.c @@ -18,14 +18,21 @@ uint32_t color_rgb[] = { [COLOR_BLACK] = 0x000000, [COLOR_BLUE] = 0x0000ff, + [COLOR_GREEN] = 0x00ff00, + [COLOR_RED] = 0xff0000, [COLOR_YELLOW] = 0xffff00, [COLOR_WHITE] = 0xffffff, [COLOR_GREEN4] = 0x009000, + [COLOR_GREEN3] = 0x00b000, + [COLOR_GREEN2] = 0x00d000, [COLOR_CYAN4] = 0x009090, [COLOR_CYAN3] = 0x00b0b0, [COLOR_RED4] = 0x900000, [COLOR_RED3] = 0xb00000, [COLOR_MAGENTA4] = 0x900090, [COLOR_BROWN2] = 0xc06000, + + /* user-defined colors */ [COLOR_DARK_YELLOW] = 0x848400, + [COLOR_LIGHT_GREY] = 0xd0d0d0, }; diff --git a/eeshow/style.h b/eeshow/style.h index 95e5e39..eaa3b49 100644 --- a/eeshow/style.h +++ b/eeshow/style.h @@ -21,9 +21,13 @@ #define COLOR_NONE -1 #define COLOR_BLACK 0 #define COLOR_BLUE 1 +#define COLOR_GREEN 2 +#define COLOR_RED 4 #define COLOR_YELLOW 6 #define COLOR_WHITE 7 #define COLOR_GREEN4 12 +#define COLOR_GREEN3 13 +#define COLOR_GREEN2 14 #define COLOR_CYAN4 15 #define COLOR_CYAN3 16 #define COLOR_RED4 18 @@ -32,6 +36,7 @@ #define COLOR_BROWN2 26 #define COLOR_DARK_YELLOW 32 /* user-defined */ +#define COLOR_LIGHT_GREY 33 /* user-defined, not used for FIG */ #define COLOR_COMP_DWG COLOR_RED4 #define COLOR_COMP_DWG_BG COLOR_YELLOW