##// END OF EJS Templates
New theme with light colors, chartview background
New theme with light colors, chartview background

File last commit:

r584:bcc474698f6b
r584:bcc474698f6b
Show More
chartthemebluecerulean_p.h
32 lines | 1022 B | text/x-c | CLexer
/ src / themes / chartthemebluecerulean_p.h
#include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeBlueCerulean: public ChartTheme
{
public:
ChartThemeBlueCerulean() : ChartTheme(QChart::ChartThemeBlueCerulean)
{
// Series colors
m_seriesColors << QRgb(0xc7e85b);
m_seriesColors << QRgb(0x5dbe9b);
m_seriesColors << QRgb(0x4fbef3);
generateSeriesGradients();
// No chart background, chart view specifies a background
// TODO: what if the chart is drawn on custom graphics scene instead of QChartView?
// Axes and other
m_masterFont = QFont();
m_axisLinePen = QPen(QRgb(0xf7f7ff));
m_axisLinePen.setWidth(2);
m_axisLabelBrush = QBrush(QRgb(0xf7f7ff));
m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons
m_backgroundShadesPen = Qt::NoPen;
m_backgroundShades = BackgroundShadesNone;
m_gridLinePen = QPen(QRgb(0xf7f7ff));
m_gridLinePen.setWidth(1);
}
};
QTCOMMERCIALCHART_END_NAMESPACE