From 1c5cde94f0c7751d2704a42e290d5e45ab31d31e Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 26 Jun 2015 17:34:07 +0200 Subject: [PATCH] Make WX_HTML_REPORT_PANEL use the default system background color. --- common/dialogs/wx_html_report_panel.cpp | 14 +++++++++++++- common/dialogs/wx_html_report_panel.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp index c2eb05b6b0..b93af6c382 100644 --- a/common/dialogs/wx_html_report_panel.cpp +++ b/common/dialogs/wx_html_report_panel.cpp @@ -35,6 +35,7 @@ WX_HTML_REPORT_PANEL::WX_HTML_REPORT_PANEL( wxWindow* parent, m_showAll( true ) { syncCheckboxes(); + m_htmlView->SetPage( addHeader( "" ) ); } @@ -79,11 +80,22 @@ void WX_HTML_REPORT_PANEL::refreshView() html += generateHtml( l ); } - m_htmlView->SetPage( html ); + m_htmlView->SetPage( addHeader( html ) ); scrollToBottom(); } +wxString WX_HTML_REPORT_PANEL::addHeader( const wxString& aBody ) +{ + wxColour bgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ); + wxString s = ""; + s += aBody; + s += ""; + + return s; +} + + wxString WX_HTML_REPORT_PANEL::generateHtml( const REPORT_LINE& aLine ) { if( !m_showAll && ! ( m_severities & aLine.severity ) ) diff --git a/common/dialogs/wx_html_report_panel.h b/common/dialogs/wx_html_report_panel.h index 9fe23fb000..953a49be03 100644 --- a/common/dialogs/wx_html_report_panel.h +++ b/common/dialogs/wx_html_report_panel.h @@ -64,6 +64,7 @@ private: typedef std::vector REPORT_LINES; + wxString addHeader( const wxString& aBody ); wxString generateHtml( const REPORT_LINE& aLine ); wxString generatePlainText( const REPORT_LINE& aLine );