Use schematic colours in symbol preview status panel.

Fixes https://gitlab.com/kicad/code/kicad/issues/4998
This commit is contained in:
Jeff Young 2020-09-16 00:58:08 +01:00
parent cdbe2fd2d2
commit 7e35658c28
1 changed files with 2 additions and 0 deletions

View File

@ -80,7 +80,9 @@ SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aKiway,
m_preview->GetGAL()->SetClearColor( backgroundColor ); m_preview->GetGAL()->SetClearColor( backgroundColor );
m_statusPanel = new wxPanel( this ); m_statusPanel = new wxPanel( this );
m_statusPanel->SetBackgroundColour( backgroundColor.ToColour() );
m_status = new wxStaticText( m_statusPanel, wxID_ANY, wxEmptyString ); m_status = new wxStaticText( m_statusPanel, wxID_ANY, wxEmptyString );
m_status->SetForegroundColour( settings->GetLayerColor( LAYER_REFERENCEPART ).ToColour() );
m_statusSizer = new wxBoxSizer( wxVERTICAL ); m_statusSizer = new wxBoxSizer( wxVERTICAL );
m_statusSizer->Add( 0, 0, 1 ); // add a spacer m_statusSizer->Add( 0, 0, 1 ); // add a spacer
m_statusSizer->Add( m_status, 0, wxALIGN_CENTER ); m_statusSizer->Add( m_status, 0, wxALIGN_CENTER );