Expose grid axes color control

Note: axis thickness is currently calculated from grid line
thickness.  I'm not adding a separate control for it as
requested in the original issue right now, but if we determine
that we need a separate control it can be added.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/2353
This commit is contained in:
Jon Evans 2020-10-13 21:26:56 -04:00
parent b2e9f6987d
commit 19fb1a92ce
3 changed files with 1 additions and 2 deletions

View File

@ -65,7 +65,6 @@ PANEL_MODEDIT_COLOR_SETTINGS::PANEL_MODEDIT_COLOR_SETTINGS( FOOTPRINT_EDIT_FRAME
for( int id = GAL_LAYER_ID_START; id < GAL_LAYER_ID_END; id++ ) for( int id = GAL_LAYER_ID_START; id < GAL_LAYER_ID_END; id++ )
{ {
if( id == LAYER_VIAS if( id == LAYER_VIAS
|| id == LAYER_GRID_AXES
|| id == LAYER_PADS_PLATEDHOLES || id == LAYER_PADS_PLATEDHOLES
|| id == LAYER_VIAS_HOLES ) || id == LAYER_VIAS_HOLES )
{ {

View File

@ -354,7 +354,6 @@ std::string g_previewBoard =
std::set<int> g_excludedLayers = std::set<int> g_excludedLayers =
{ {
LAYER_VIAS, LAYER_VIAS,
LAYER_GRID_AXES,
LAYER_MOD_FR, LAYER_MOD_FR,
LAYER_MOD_BK, LAYER_MOD_BK,
LAYER_MOD_VALUES, LAYER_MOD_VALUES,

View File

@ -251,6 +251,7 @@ void PCB_DRAW_PANEL_GAL::UpdateColors()
rs->LoadColors( cs ); rs->LoadColors( cs );
m_gal->SetGridColor( cs->GetColor( LAYER_GRID ) ); m_gal->SetGridColor( cs->GetColor( LAYER_GRID ) );
m_gal->SetAxesColor( cs->GetColor( LAYER_GRID_AXES ) );
m_gal->SetCursorColor( cs->GetColor( LAYER_CURSOR ) ); m_gal->SetCursorColor( cs->GetColor( LAYER_CURSOR ) );
} }