Add control over worksheet colour in eeschema.

This commit is contained in:
Jeff Young 2018-09-19 21:33:48 +01:00
parent 637029c292
commit 06e63c3073
1 changed files with 5 additions and 2 deletions

View File

@ -90,10 +90,11 @@ static COLORBUTTON sheetColorButtons[] = {
static COLORBUTTON miscColorButtons[] = {
{ _( "ERC warning" ), LAYER_ERC_WARN },
{ _( "ERC error" ), LAYER_ERC_ERR },
{ _( "Cursor" ), LAYER_SCHEMATIC_CURSOR },
{ _( "Grid" ), LAYER_SCHEMATIC_GRID },
{ _( "Brightened" ), LAYER_BRIGHTENED },
{ _( "Hidden items" ), LAYER_HIDDEN },
{ _( "Worksheet" ), LAYER_WORKSHEET },
{ _( "Cursor" ), LAYER_SCHEMATIC_CURSOR },
{ _( "Grid" ), LAYER_SCHEMATIC_GRID },
{ _( "Background" ), LAYER_SCHEMATIC_BACKGROUND },
{ wxT( "" ), -1 } // Sentinel marking end of list.
};
@ -261,6 +262,8 @@ bool WIDGET_EESCHEMA_COLOR_CONFIG::TransferDataFromControl()
for( SCH_LAYER_ID clyr = SCH_LAYER_ID_START; clyr < SCH_LAYER_ID_END; ++clyr )
SetLayerColor( currentColors[ clyr ], clyr );
SetLayerColor( currentColors[ LAYER_WORKSHEET ], (SCH_LAYER_ID) LAYER_WORKSHEET );
return true;
}