summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-16 12:27:37 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-16 12:27:37 -0300
commit71cdc9d39b18b9b991fbb9f02a7ba7e93c64149f (patch)
treec81b3058bf2af647f7582d43d727d29456e83831
parent4868d9219622f2b31960bfe0528fc871e776683a (diff)
downloadeeshow-71cdc9d39b18b9b991fbb9f02a7ba7e93c64149f.tar.gz
eeshow-71cdc9d39b18b9b991fbb9f02a7ba7e93c64149f.tar.bz2
eeshow-71cdc9d39b18b9b991fbb9f02a7ba7e93c64149f.zip
eeshow/style.h (COLOR_COMP_DWG_BG): use lighter yellow for background
0xffffc2 is the same color KiCad uses.
-rw-r--r--style.c5
-rw-r--r--style.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/style.c b/style.c
index 85f4138..9bd0790 100644
--- a/style.c
+++ b/style.c
@@ -37,6 +37,11 @@ uint32_t color_rgb[] = {
/* user-defined colors */
[COLOR_DARK_YELLOW] = 0x848400,
[COLOR_LIGHT_GREY] = 0xd0d0d0,
+ [COLOR_LIGHT_YELLOW] = 0xffffc2,
+ /*
+ * If COLOR_LIGHT_YELLOW should be visible in diff (and not
+ * just appear white), use 0xffffa0 or darker.
+ */
};
unsigned n_color_rgb = ARRAY_ELEMENTS(color_rgb);
diff --git a/style.h b/style.h
index 80e3597..4a090ef 100644
--- a/style.h
+++ b/style.h
@@ -37,10 +37,11 @@
#define COLOR_PINK4 27
#define COLOR_DARK_YELLOW 32 /* user-defined */
-#define COLOR_LIGHT_GREY 33 /* user-defined, not used for FIG */
+#define COLOR_LIGHT_GREY 33 /* user-defined, not used by FIG */
+#define COLOR_LIGHT_YELLOW 34 /* user-defined */
#define COLOR_COMP_DWG COLOR_RED4
-#define COLOR_COMP_DWG_BG COLOR_YELLOW
+#define COLOR_COMP_DWG_BG COLOR_LIGHT_YELLOW
#define COLOR_SHEET_DWG COLOR_BLUE
#define COLOR_TEXT COLOR_BLUE
#define COLOR_WIRE COLOR_GREEN4