##// 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
Tero Ahola
Added draft of dark blue theme
r581 #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();
Tero Ahola
New theme with light colors, chartview background
r584 // No chart background, chart view specifies a background
// TODO: what if the chart is drawn on custom graphics scene instead of QChartView?
Tero Ahola
Added draft of dark blue theme
r581
// Axes and other
m_masterFont = QFont();
Tero Ahola
New theme with light colors, chartview background
r584 m_axisLinePen = QPen(QRgb(0xf7f7ff));
Tero Ahola
Added draft of dark blue theme
r581 m_axisLinePen.setWidth(2);
Tero Ahola
New theme with light colors, chartview background
r584 m_axisLabelBrush = QBrush(QRgb(0xf7f7ff));
Tero Ahola
Added draft of dark blue theme
r581 m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons
m_backgroundShadesPen = Qt::NoPen;
m_backgroundShades = BackgroundShadesNone;
Tero Ahola
New theme with light colors, chartview background
r584 m_gridLinePen = QPen(QRgb(0xf7f7ff));
m_gridLinePen.setWidth(1);
Tero Ahola
Added draft of dark blue theme
r581 }
};
QTCOMMERCIALCHART_END_NAMESPACE