From e07848d8871615d8fd92aa5a07ce4f82be1c6455 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 14 Dec 2020 09:48:26 -0500 Subject: [PATCH] Make the footprint preview control bg the same as the preview itself Fix #5571 --- common/widgets/footprint_preview_widget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/widgets/footprint_preview_widget.cpp b/common/widgets/footprint_preview_widget.cpp index 60747646e4..3721fa3b94 100644 --- a/common/widgets/footprint_preview_widget.cpp +++ b/common/widgets/footprint_preview_widget.cpp @@ -50,6 +50,11 @@ FOOTPRINT_PREVIEW_WIDGET::FOOTPRINT_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aK m_statusPanel->SetBackgroundColour( m_prev_panel->GetBackgroundColor().ToColour() ); m_statusPanel->SetForegroundColour( m_prev_panel->GetForegroundColor().ToColour() ); + // Set our background so wx doesn't render a normal control background momentarily when rapidly + // navigating with arrow keys + SetBackgroundColour( m_prev_panel->GetBackgroundColor().ToColour() ); + SetForegroundColour( m_prev_panel->GetForegroundColor().ToColour() ); + m_outerSizer = new wxBoxSizer( wxVERTICAL ); m_outerSizer->Add( m_prev_panel->GetWindow(), 1, wxALL | wxEXPAND, 0 ); m_outerSizer->Add( m_statusPanel, 1, wxALL | wxEXPAND, 0 );