Index: trunk/doc/conf/tree/appearance_color.html =================================================================== --- trunk/doc/conf/tree/appearance_color.html (revision 28338) +++ trunk/doc/conf/tree/appearance_color.html (revision 28339) @@ -3,7 +3,7 @@

subtree: appearance/color

node name type flags description -
crosshair color 0 color of the on-screen crosshair +
crosshair color 0 obsolete - DO NOT USE - kept for compatibility (use appearance/color/cross instead)
drc color 0 color of the on-screen drc clearance indication while routing
selected color 0 generic object selection color
via color 0 non-terminal padstack shape on current layer Index: trunk/src/conf_core.h =================================================================== --- trunk/src/conf_core.h (revision 28338) +++ trunk/src/conf_core.h (revision 28339) @@ -158,7 +158,7 @@ CFT_BOOLEAN black_current_group; /* render all layers of the current group black, for maximum contrast */ struct { /* color */ - CFT_COLOR crosshair; /* color of the on-screen crosshair */ + CFT_COLOR crosshair; /* obsolete - DO NOT USE - kept for compatibility (use appearance/color/cross instead) */ CFT_COLOR drc; /* color of the on-screen drc clearance indication while routing */ CFT_COLOR selected; /* generic object selection color */ CFT_COLOR via; /* non-terminal padstack shape on current layer */ Index: trunk/src/crosshair.c =================================================================== --- trunk/src/crosshair.c (revision 28338) +++ trunk/src/crosshair.c (revision 28339) @@ -293,7 +293,7 @@ pcb_draw_wireframe_line(pcb_crosshair.GC,line.Point1.X, line.Point1.Y, line.Point2.X, line.Point2.Y, line.Thickness + 2 * (conf_core.design.bloat + 1), 0); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } break; } @@ -315,7 +315,7 @@ pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.drc); arc.Thickness += 2 * (conf_core.design.bloat + 1); pcb_draw_wireframe_arc(pcb_crosshair.GC, &arc, arc.Thickness); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } break; } @@ -358,7 +358,7 @@ pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.drc); pcb_draw_wireframe_line(pcb_crosshair.GC,point1->X, point1->Y, point2.X, point2.Y,line->Thickness + 2 * (conf_core.design.bloat + 1), 0); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } } else { @@ -413,7 +413,7 @@ pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.drc); arc.Thickness += 2 * (conf_core.design.bloat + 1); pcb_draw_wireframe_arc(pcb_crosshair.GC, &arc, arc.Thickness); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } /* Get the new arc point positions, calculate the movement deltas and send them @@ -477,7 +477,7 @@ pcb_render->set_drawing_mode(pcb_gui, PCB_HID_COMP_POSITIVE_XOR, 1, NULL); } - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); pcb_tool_draw_attached(hidlib); /* an attached box does not depend on a special mode */ @@ -505,7 +505,7 @@ pcb_render->set_drawing_mode(pcb_gui, PCB_HID_COMP_RESET, 1, NULL); pcb_render->set_drawing_mode(pcb_gui, PCB_HID_COMP_POSITIVE, 1, NULL); } - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } if (pcb_marked.status) { @@ -1077,7 +1077,7 @@ { pcb_crosshair.GC = pcb_hid_make_gc(); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); pcb_hid_set_draw_xor(pcb_crosshair.GC, 1); pcb_hid_set_line_cap(pcb_crosshair.GC, pcb_cap_round); pcb_hid_set_line_width(pcb_crosshair.GC, 1); Index: trunk/src/pcb-conf.lht =================================================================== --- trunk/src/pcb-conf.lht (revision 28338) +++ trunk/src/pcb-conf.lht (revision 28339) @@ -161,7 +161,6 @@ } ha:color { background = {#e5e5e5} - crosshair = {#ff0000} cross = {#cdcd00} drc = {#cdcd00} selected = {#00ffff} Index: trunk/src/tool_arc.c =================================================================== --- trunk/src/tool_arc.c (revision 28338) +++ trunk/src/tool_arc.c (revision 28339) @@ -147,7 +147,7 @@ if (conf_core.editor.show_drc) { pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.drc); pcb_xordraw_attached_arc(conf_core.design.line_thickness + 2 * (conf_core.design.bloat + 1)); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } } else { @@ -166,7 +166,7 @@ pcb_crosshair.X, pcb_crosshair.Y, pcb_crosshair.X, pcb_crosshair.Y, conf_core.design.line_thickness + (2 * conf_core.design.bloat), 0); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } } Index: trunk/src/tool_line.c =================================================================== --- trunk/src/tool_line.c (revision 28338) +++ trunk/src/tool_line.c (revision 28339) @@ -365,7 +365,7 @@ pcb_route_draw(&pcb_crosshair.Route,pcb_crosshair.GC); if (conf_core.editor.show_drc) pcb_route_draw_drc(&pcb_crosshair.Route,pcb_crosshair.GC); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } else { /* Draw a circle (0 length line) to show where the line will be placed */ @@ -383,7 +383,7 @@ pcb_crosshair.X, pcb_crosshair.Y, pcb_crosshair.X, pcb_crosshair.Y, conf_core.design.line_thickness + (2 * conf_core.design.bloat), 0); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } } } Index: trunk/src/tool_via.c =================================================================== --- trunk/src/tool_via.c (revision 28338) +++ trunk/src/tool_via.c (revision 28339) @@ -100,7 +100,7 @@ /* XXX: Naughty cheat - use the mask to draw DRC clearance! */ pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.drc); xor_draw_fake_via(pcb_crosshair.X, pcb_crosshair.Y, conf_core.design.via_thickness, conf_core.design.clearance); - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } } Index: trunk/src_plugins/rubberband_orig/rubberband.c =================================================================== --- trunk/src_plugins/rubberband_orig/rubberband.c (revision 28338) +++ trunk/src_plugins/rubberband_orig/rubberband.c (revision 28339) @@ -1197,7 +1197,7 @@ pcb_route_draw_drc(&route, pcb_crosshair.GC); pcb_route_destroy(&route); } - pcb_render->set_color(pcb_crosshair.GC, &conf_core.appearance.color.crosshair); + pcb_render->set_color(pcb_crosshair.GC, &pcbhl_conf.appearance.color.cross); } ptr++; Index: trunk/src_plugins/serpentine/serpentine.c =================================================================== --- trunk/src_plugins/serpentine/serpentine.c (revision 28338) +++ trunk/src_plugins/serpentine/serpentine.c (revision 28339) @@ -97,7 +97,7 @@ const pcb_coord_t x2 = p_info->end.X + nx; const pcb_coord_t y2 = p_info->end.Y + ny; - pcb_render->set_color(pcb_crosshair.GC, "#808080" /*conf_core.appearance.color.crosshair*/ ); + pcb_render->set_color(pcb_crosshair.GC, "#808080" /*pcbhl_conf.appearance.color.cross*/ ); pcb_render->draw_line(pcb_crosshair.GC, p_info->start.X, p_info->start.Y, p_info->end.X, p_info->end.Y ); pcb_render->draw_line(pcb_crosshair.GC, p_info->start.X, p_info->start.Y, x1, y1 ); pcb_render->draw_line(pcb_crosshair.GC, p_info->end.X, p_info->end.Y, x2, y2 );