Improve visuals of html error reporting.

This commit is contained in:
Jeff Young 2020-06-01 20:36:58 +01:00
parent a76a1aefaa
commit 7aaf72c473
2 changed files with 5 additions and 7 deletions

View File

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

View File

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