diff --git a/common/widgets/msgpanel.cpp b/common/widgets/msgpanel.cpp index 831d473786..3da1e9db84 100644 --- a/common/widgets/msgpanel.cpp +++ b/common/widgets/msgpanel.cpp @@ -33,6 +33,7 @@ #include #include #include +#include BEGIN_EVENT_TABLE( EDA_MSG_PANEL, wxPanel ) @@ -108,8 +109,8 @@ void EDA_MSG_PANEL::OnPaint( wxPaintEvent& aEvent ) dc.SetTextBackground( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) ); dc.SetFont( wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ) ); - for( unsigned i=0; i( wxGetTopLevelParent( this ) ); + + if( tlw && !tlw->IsActive() ) + color = wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ); + else + color = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT ); aDC.SetTextForeground( color.ToColour() );