← Back to team overview

kicad-developers team mailing list archive

Re: New log widged - background trouble

 

In response to a message written on 26.06.2015, 17:50, from Maciej Sumiński:
My patch was only for the html report window (i.e. the one in the
netlist import dialog). What is your opinion about the final effect? I
hope it looks fine with light gray text color.
OK, please apply attachment too, it works fine…
--
Best Regards,
LordBlick
--- common/dialogs/wx_html_report_panel.cpp.old	2015-06-26 18:46:34.163911227 +0200
+++ common/dialogs/wx_html_report_panel.cpp	2015-06-26 18:47:22.799896649 +0200
@@ -87,8 +87,9 @@
 
 wxString WX_HTML_REPORT_PANEL::addHeader( const wxString& aBody )
 {
-    wxColour bgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
-    wxString s = "<html><body bgcolor=\"" + bgcolor.GetAsString( wxC2S_HTML_SYNTAX ) + "\">";
+    wxColour bgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
+    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 += "</body></html>";
 

Follow ups

References