From 94847336a15422262819619796bdcfcef077464e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 6 Jan 2023 20:42:35 +0000 Subject: [PATCH] Bug fix for dark mode switch for layers palette. Fixes https://gitlab.com/kicad/code/kicad/issues/13154 --- pcbnew/widgets/appearance_controls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/widgets/appearance_controls.cpp b/pcbnew/widgets/appearance_controls.cpp index 8951535912..df27da38a9 100644 --- a/pcbnew/widgets/appearance_controls.cpp +++ b/pcbnew/widgets/appearance_controls.cpp @@ -1152,6 +1152,8 @@ void APPEARANCE_CONTROLS::OnDarkModeToggle() m_layerPanelColour = m_panelLayers->GetBackgroundColour().ChangeLightness( 110 ); + m_windowLayers->SetBackgroundColour( m_layerPanelColour ); + for( wxSizerItem* child : m_layersOuterSizer->GetChildren() ) { if( child && child->GetWindow() )