Just sample the panel background color rather than guessing

Fixes https://gitlab.com/kicad/code/kicad/-/issues/5260
This commit is contained in:
Jon Evans 2020-08-20 21:04:15 -04:00
parent 7565a08396
commit c763d92275
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ void APPEARANCE_CONTROLS::OnColorThemeChanged()
void APPEARANCE_CONTROLS::OnLayerChanged()
{
static wxColour normalColor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
const wxColour normalColor = m_panelLayers->GetBackgroundColour();
static wxColour highlightColor = wxSystemSettings::GetColour( wxSYS_COLOUR_SCROLLBAR );
PCB_LAYER_ID current = m_frame->GetActiveLayer();