Just sample the panel background color rather than guessing
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5260
This commit is contained in:
parent
7565a08396
commit
c763d92275
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue