diff --git a/common/layer_id.cpp b/common/layer_id.cpp index d474338c31..08869497ab 100644 --- a/common/layer_id.cpp +++ b/common/layer_id.cpp @@ -103,6 +103,9 @@ wxString LayerName( SCH_LAYER_ID aLayer ) case LAYER_SCHEMATIC_GRID: return _( "Grid" ); + case LAYER_SCHEMATIC_GRID_AXES: + return _( "Axes" ); + case LAYER_SCHEMATIC_BACKGROUND: return _( "Background" ); diff --git a/common/settings/color_settings.cpp b/common/settings/color_settings.cpp index fcd694e3fe..df1d5f6736 100644 --- a/common/settings/color_settings.cpp +++ b/common/settings/color_settings.cpp @@ -68,6 +68,7 @@ COLOR_SETTINGS::COLOR_SETTINGS( std::string aFilename ) : CLR( "schematic.erc_warning", LAYER_ERC_WARN, COLOR4D( GREEN ).WithAlpha( 0.8 ) ); CLR( "schematic.fields", LAYER_FIELDS, COLOR4D( MAGENTA ) ); CLR( "schematic.grid", LAYER_SCHEMATIC_GRID, COLOR4D( DARKGRAY ) ); + CLR( "schematic.grid_axes", LAYER_SCHEMATIC_GRID_AXES, COLOR4D( BLUE ) ); CLR( "schematic.hidden", LAYER_HIDDEN, COLOR4D( LIGHTGRAY ) ); CLR( "schematic.junction", LAYER_JUNCTION, COLOR4D( GREEN ) ); CLR( "schematic.label_global", LAYER_GLOBLABEL, COLOR4D( RED ) ); diff --git a/eeschema/libedit/lib_edit_frame.cpp b/eeschema/libedit/lib_edit_frame.cpp index 6051d01d0c..e8f194a3b1 100644 --- a/eeschema/libedit/lib_edit_frame.cpp +++ b/eeschema/libedit/lib_edit_frame.cpp @@ -790,6 +790,8 @@ void LIB_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged ) { SCH_BASE_FRAME::CommonSettingsChanged( aEnvVarsChanged ); + GetCanvas()->GetGAL()->SetAxesColor( m_colorSettings->GetColor( LAYER_SCHEMATIC_GRID_AXES ) ); + RecreateToolbars(); if( aEnvVarsChanged ) @@ -931,6 +933,7 @@ void LIB_EDIT_FRAME::SwitchCanvas( EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType ) // Set options specific to symbol editor (axies are always enabled): GetCanvas()->GetGAL()->SetAxesEnabled( true ); + GetCanvas()->GetGAL()->SetAxesColor( m_colorSettings->GetColor( LAYER_SCHEMATIC_GRID_AXES ) ); } diff --git a/include/layers_id_colors_and_visibility.h b/include/layers_id_colors_and_visibility.h index 26edeb0b83..b0ae8e8fc4 100644 --- a/include/layers_id_colors_and_visibility.h +++ b/include/layers_id_colors_and_visibility.h @@ -263,6 +263,7 @@ enum SCH_LAYER_ID: int LAYER_DEVICE_BACKGROUND, LAYER_SHEET_BACKGROUND, LAYER_SCHEMATIC_GRID, + LAYER_SCHEMATIC_GRID_AXES, LAYER_SCHEMATIC_BACKGROUND, LAYER_SCHEMATIC_CURSOR, LAYER_BRIGHTENED,