Add control over worksheet colour in eeschema.
This commit is contained in:
parent
637029c292
commit
06e63c3073
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue