diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp
index 2857d20ce0..a01154db6f 100644
--- a/common/dialogs/wx_html_report_panel.cpp
+++ b/common/dialogs/wx_html_report_panel.cpp
@@ -33,6 +33,7 @@
#include
#include
#include
+#include
WX_HTML_REPORT_PANEL::WX_HTML_REPORT_PANEL( wxWindow* parent, wxWindowID id, const wxPoint& pos,
const wxSize& size, long style ) :
@@ -181,23 +182,47 @@ wxString WX_HTML_REPORT_PANEL::generateHtml( const REPORT_LINE& aLine )
if( !( m_severities & aLine.severity ) )
return retv;
- switch( aLine.severity )
+ if( KIPLATFORM::UI::IsDarkTheme() )
{
- case RPT_SEVERITY_ERROR:
- retv = "" + _( "Error:" ) + " "
- "" + aLine.message + "
";
- break;
- case RPT_SEVERITY_WARNING:
- retv = "" + _( "Warning:" ) + wxS( " " ) + aLine.message + "
";
- break;
- case RPT_SEVERITY_INFO:
- retv = "" + aLine.message + "
";
- break;
- case RPT_SEVERITY_ACTION:
- retv = "" + aLine.message + "
";
- break;
- default:
- retv = "" + aLine.message + "
";
+ switch( aLine.severity )
+ {
+ case RPT_SEVERITY_ERROR:
+ retv = "" + _( "Error:" ) + " "
+ "" + aLine.message + "
";
+ break;
+ case RPT_SEVERITY_WARNING:
+ retv = "" + _( "Warning:" ) + wxS( " " ) + aLine.message + "
";
+ break;
+ case RPT_SEVERITY_INFO:
+ retv = "" + aLine.message + "
";
+ break;
+ case RPT_SEVERITY_ACTION:
+ retv = "" + aLine.message + "
";
+ break;
+ default:
+ retv = "" + aLine.message + "
";
+ }
+ }
+ else
+ {
+ switch( aLine.severity )
+ {
+ case RPT_SEVERITY_ERROR:
+ retv = "" + _( "Error:" ) + " "
+ "" + aLine.message + "
";
+ break;
+ case RPT_SEVERITY_WARNING:
+ retv = "" + _( "Warning:" ) + wxS( " " ) + aLine.message + "
";
+ break;
+ case RPT_SEVERITY_INFO:
+ retv = "" + aLine.message + "
";
+ break;
+ case RPT_SEVERITY_ACTION:
+ retv = "" + aLine.message + "
";
+ break;
+ default:
+ retv = "" + aLine.message + "
";
+ }
}
return retv;
diff --git a/common/widgets/number_badge.cpp b/common/widgets/number_badge.cpp
index 447f8011e9..d168e532cb 100644
--- a/common/widgets/number_badge.cpp
+++ b/common/widgets/number_badge.cpp
@@ -25,7 +25,7 @@
#include
#include
-
+#include
NUMBER_BADGE::NUMBER_BADGE( wxWindow* aParent, wxWindowID aId, const wxPoint& aPos,
const wxSize& aSize, int aStyles ) :
@@ -67,7 +67,7 @@ void NUMBER_BADGE::UpdateNumber( int aNumber, SEVERITY aSeverity )
switch( aSeverity )
{
case RPT_SEVERITY_ERROR:
- m_badgeColour = *wxRED;
+ m_badgeColour = KIPLATFORM::UI::IsDarkTheme() ? wxColour( 240, 64, 64 ) : *wxRED;
m_textColour = *wxWHITE;
break;