Index: src/create.c =================================================================== --- src/create.c (revision 28) +++ src/create.c (revision 29) @@ -110,6 +110,7 @@ /* copy default settings */ ptr->ConnectedColor = Settings.ConnectedColor; ptr->ElementColor = Settings.ElementColor; + ptr->ElementColor_nonetlist = Settings.ElementColor_nonetlist; ptr->RatColor = Settings.RatColor; ptr->InvisibleObjectsColor = Settings.InvisibleObjectsColor; ptr->InvisibleMarkColor = Settings.InvisibleMarkColor; Index: src/draw.c =================================================================== --- src/draw.c (revision 28) +++ src/draw.c (revision 29) @@ -369,11 +369,18 @@ gui->set_color (Output.fgGC, PCB->ElementColor); else if (TEST_FLAG (SELECTEDFLAG, &ELEMENT_TEXT (PCB, element))) gui->set_color (Output.fgGC, PCB->ElementSelectedColor); - else if (FRONT (element)) - gui->set_color (Output.fgGC, PCB->ElementColor); + else if (FRONT (element)) { +/* TODO: why do we test for Name's flag here? */ + if (TEST_FLAG (NONETLISTFLAG, &element->Name[1])) + gui->set_color (Output.fgGC, PCB->ElementColor_nonetlist); + else + gui->set_color (Output.fgGC, PCB->ElementColor); + } else gui->set_color (Output.fgGC, PCB->InvisibleObjectsColor); + DrawTextLowLevel (&ELEMENT_TEXT (PCB, element), PCB->minSlk); + } static int Index: src/global.h =================================================================== --- src/global.h (revision 28) +++ src/global.h (revision 29) @@ -503,6 +503,7 @@ *PinSelectedColor, *PinNameColor, *ElementColor, + *ElementColor_nonetlist, *RatColor, *InvisibleObjectsColor, *InvisibleMarkColor, @@ -628,6 +629,7 @@ *PinSelectedColor, *PinNameColor, *ElementColor, + *ElementColor_nonetlist, *RatColor, *InvisibleObjectsColor, *InvisibleMarkColor, Index: src/main.c =================================================================== --- src/main.c (revision 28) +++ src/main.c (revision 29) @@ -615,8 +615,18 @@ */ COLOR (ElementColor, "#000000", "element-color", "color of components"), + /* %start-doc options "3 Colors" @ftable @code +@item --element-color-nonetlist +Color of components. Default: @samp{#777777} +@end ftable +%end-doc +*/ + COLOR (ElementColor_nonetlist, "#777777", "element-color-nonetlist", "color of components not part of the netlist"), + +/* %start-doc options "3 Colors" +@ftable @code @item --rat-color Color of ratlines. Default: @samp{#b8860b} @end ftable