Browse Source

Improve visuals of html error reporting.

pull/16/head
Jeff Young 6 years ago
parent
commit
7aaf72c473
  1. 10
      common/dialogs/wx_html_report_panel.cpp
  2. 2
      pcbnew/netlist_reader/board_netlist_updater.cpp

10
common/dialogs/wx_html_report_panel.cpp

@ -174,16 +174,14 @@ wxString WX_HTML_REPORT_PANEL::generateHtml( const REPORT_LINE& aLine )
switch( aLine.severity )
{
case RPT_SEVERITY_ERROR:
retv = "<font color=\"red\" size=3><b>" + _( "Error: " ) + "</b></font><font size=2>" +
aLine.message + "</font><br>";
retv = "<font color=\"red\" size=3>" + _( "Error: " ) + "</font>"
"<font size=3>" + aLine.message + "</font><br>";
break;
case RPT_SEVERITY_WARNING:
retv = "<font color=\"orange\" size=3><b>" + _( "Warning: " ) +
"</b></font><font size=2>" + aLine.message + "</font><br>";
retv = "<font size=3>" + _( "Warning: " ) + aLine.message + "</font><br>";
break;
case RPT_SEVERITY_INFO:
retv = "<font color=\"dark gray\" size=3><b>" + _( "Info: " ) + "</b>" + aLine.message +
"</font><br>";
retv = "<font color=\"dark gray\" size=3>" + _( "Info: " ) + aLine.message + "</font><br>";
break;
case RPT_SEVERITY_ACTION:
retv = "<font color=\"dark green\" size=3>" + aLine.message + "</font><br>";

2
pcbnew/netlist_reader/board_netlist_updater.cpp

@ -854,7 +854,7 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist )
m_reporter->ReportTail( wxT( "" ), RPT_SEVERITY_ACTION );
msg.Printf( _( "Total warnings: %d, errors: %d." ), m_warningCount, m_errorCount );
m_reporter->ReportTail( msg, RPT_SEVERITY_ACTION );
m_reporter->ReportTail( msg, RPT_SEVERITY_INFO );
if( m_errorCount )
{

Loading…
Cancel
Save