Use the system text color in WX_HTML_REPORT_PANEL.

This commit is contained in:
LordBlick 2015-06-29 10:43:09 +02:00 committed by Maciej Suminski
parent 66aa22c1db
commit 3adf12344a
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ void WX_HTML_REPORT_PANEL::refreshView()
wxString WX_HTML_REPORT_PANEL::addHeader( const wxString& aBody ) wxString WX_HTML_REPORT_PANEL::addHeader( const wxString& aBody )
{ {
wxColour bgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ); wxColour bgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
wxString s = "<html><body bgcolor=\"" + bgcolor.GetAsString( wxC2S_HTML_SYNTAX ) + "\">"; wxColour fgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
wxString s = "<html><body bgcolor=\"" + bgcolor.GetAsString( wxC2S_HTML_SYNTAX ) +
"\" text=\"" + fgcolor.GetAsString( wxC2S_HTML_SYNTAX ) + "\">";
s += aBody; s += aBody;
s += "</body></html>"; s += "</body></html>";