Index: draw_fontsel.c =================================================================== --- draw_fontsel.c (revision 33982) +++ draw_fontsel.c (revision 33983) @@ -49,6 +49,9 @@ static pcb_draw_info_t dinfo; static rnd_xform_t dxform; +/* Safe color that is always visible on the background color, even if the user changed background to dark */ +#define BLACK (&conf_core.appearance.color.element) +#define RED (&conf_core.appearance.color.mark) static pcb_text_t *dtext(int x, int y, int scale, pcb_font_id_t fid, const char *txt) { @@ -86,13 +89,13 @@ int w = 2, h = 2; float th = 0.1, th2 = 0.4; - rnd_render->set_color(gc, rnd_color_black); + rnd_render->set_color(gc, BLACK); dline(x0, y0, x0+w, y0, th); dline(x0+w, y0, x0+w, y0+h, th); dline(x0+w, y0+h, x0, y0+h, th); dline(x0, y0+h, x0, y0, th); if (checked) { - rnd_render->set_color(gc, rnd_color_red); + rnd_render->set_color(gc, RED); dline(x0, y0, x0+w, y0+h, th2); dline(x0, y0+h, x0+w, y0, th2); } @@ -120,7 +123,7 @@ dchkbox(gc, x-4, *y, (f->id == target_fid)); - rnd_render->set_color(gc, rnd_color_black); + rnd_render->set_color(gc, BLACK); t = dtext(x, *y, 200, f->id, buf); pcb_text_bbox(pcb_font(PCB, f->id, 1), t);