Add color layer for schematic aux items

Fixes https://gitlab.com/kicad/code/kicad/-/issues/4825
This commit is contained in:
Jon Evans 2020-08-09 17:39:45 -04:00
parent 78fb6a384d
commit 2fc9c7233d
4 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,9 @@ wxString LayerName( int aLayer )
case LAYER_ERC_ERR:
return _( "ERC error" );
case LAYER_SCHEMATIC_AUX_ITEMS:
return _( "Helper items" );
case LAYER_SCHEMATIC_GRID:
return _( "Grid" );

View File

@ -65,6 +65,7 @@ COLOR_SETTINGS::COLOR_SETTINGS( wxString aFilename ) :
#define CLR( x, y, z ) m_params.emplace_back( new COLOR_MAP_PARAM( x, y, z, &m_colors ) )
CLR( "schematic.aux_items", LAYER_SCHEMATIC_AUX_ITEMS, COLOR4D( BLACK ) );
CLR( "schematic.background", LAYER_SCHEMATIC_BACKGROUND, COLOR4D( WHITE ) );
CLR( "schematic.brightened", LAYER_BRIGHTENED, COLOR4D( PUREMAGENTA ) );
CLR( "schematic.bus", LAYER_BUS, COLOR4D( BLUE ) );

View File

@ -96,6 +96,8 @@ void SCH_RENDER_SETTINGS::LoadColors( const COLOR_SETTINGS* aSettings )
m_backgroundColor = aSettings->GetColor( LAYER_SCHEMATIC_BACKGROUND );
m_layerColors[LAYER_AUX_ITEMS] = m_layerColors[LAYER_SCHEMATIC_AUX_ITEMS];
m_OverrideItemColors = aSettings->GetOverrideSchItemColors();
}

View File

@ -312,6 +312,7 @@ enum SCH_LAYER_ID: int
LAYER_SELECTION_SHADOWS,
LAYER_SCHEMATIC_WORKSHEET,
LAYER_BUS_JUNCTION,
LAYER_SCHEMATIC_AUX_ITEMS,
SCH_LAYER_ID_END
};