From 06e63c30732712baed69dbbfc8d25683c01754c6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 19 Sep 2018 21:33:48 +0100 Subject: [PATCH] Add control over worksheet colour in eeschema. --- eeschema/widgets/widget_eeschema_color_config.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/widgets/widget_eeschema_color_config.cpp b/eeschema/widgets/widget_eeschema_color_config.cpp index 5a3c85eeea..41e97f71cd 100644 --- a/eeschema/widgets/widget_eeschema_color_config.cpp +++ b/eeschema/widgets/widget_eeschema_color_config.cpp @@ -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; }