summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-07 14:04:04 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-07 14:05:31 -0300
commit979a5f11e7508c775f96138ac655147991536d82 (patch)
tree0fe054027beafde1ff7bd8692464af86b2a4f921
parentff8f6b21bb6aab4ae205ff7c539e5019eb0a2424 (diff)
downloadeeshow-979a5f11e7508c775f96138ac655147991536d82.tar.gz
eeshow-979a5f11e7508c775f96138ac655147991536d82.tar.bz2
eeshow-979a5f11e7508c775f96138ac655147991536d82.zip
eeshow/style.h, style.c: add Green, Red, Green2, Green3, and a user light grey
-rw-r--r--style.c7
-rw-r--r--style.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/style.c b/style.c
index 7f86798..3f9e472 100644
--- a/style.c
+++ b/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/style.h b/style.h
index 95e5e39..eaa3b49 100644
--- a/style.h
+++ b/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