#6514 Dark Theme : Fix text color in nightcharts

This commit is contained in:
Magne Sjaastad
2020-09-16 14:32:14 +02:00
committed by Gaute Lindkvist
parent 0b44f6ab18
commit 2cfa900041
3 changed files with 16 additions and 3 deletions

View File

@@ -17,6 +17,7 @@
/////////////////////////////////////////////////////////////////////////////////
#include "RiuNightchartsWidget.h"
#include "RiuGuiTheme.h"
//--------------------------------------------------------------------------------------------------
///
@@ -89,6 +90,9 @@ void RiuNightchartsWidget::clear()
m_chart.setLegendType( Nightcharts::Vertical );
m_chart.setShadows( false );
auto col = RiuGuiTheme::getColorByVariableName( "textColor" );
m_chart.setTextColor( col );
m_marginLeft = 10;
m_marginTop = 10;
m_maxNameWidth = 0;