From c763d92275a99e91207546db18e6fb2bea63e071 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 20 Aug 2020 21:04:15 -0400 Subject: [PATCH] Just sample the panel background color rather than guessing Fixes https://gitlab.com/kicad/code/kicad/-/issues/5260 --- pcbnew/widgets/appearance_controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/widgets/appearance_controls.cpp b/pcbnew/widgets/appearance_controls.cpp index bb5f5e2bcd..0bb00beefc 100644 --- a/pcbnew/widgets/appearance_controls.cpp +++ b/pcbnew/widgets/appearance_controls.cpp @@ -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();