From a0be60f9351039ca215edbf29b64473514dc7cbf Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 16 Aug 2016 12:27:37 -0300 Subject: [PATCH] eeshow/style.h (COLOR_COMP_DWG_BG): use lighter yellow for background 0xffffc2 is the same color KiCad uses. --- eeshow/style.c | 5 +++++ eeshow/style.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/eeshow/style.c b/eeshow/style.c index 85f4138..9bd0790 100644 --- a/eeshow/style.c +++ b/eeshow/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/eeshow/style.h b/eeshow/style.h index 80e3597..4a090ef 100644 --- a/eeshow/style.h +++ b/eeshow/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