chartthemevanilla_p.h
37 lines
| 1.2 KiB
| text/x-c
|
CLexer
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeVanilla: public ChartTheme | ||||
{ | ||||
public: | ||||
|
r153 | ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla) | ||
|
r143 | { | ||
|
r548 | // Series | ||
m_seriesColors << QRgb(0xd9c574); | ||||
m_seriesColors << QRgb(0xd6a896); | ||||
m_seriesColors << QRgb(0xa0a071); | ||||
m_seriesColors << QRgb(0xd2d234); | ||||
m_seriesColors << QRgb(0x88723a); | ||||
|
r507 | generateSeriesGradients(); | ||
|
r494 | |||
|
r548 | // Background | ||
|
r494 | QLinearGradient backgroundGradient; | ||
|
r548 | backgroundGradient.setColorAt(0.0, QRgb(0xfbf9f1)); | ||
backgroundGradient.setColorAt(1.0, QRgb(0xf5f0dc)); | ||||
|
r494 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||
m_backgroundGradient = backgroundGradient; | ||||
|
r548 | |||
// Axes and other | ||||
m_masterFont = QFont(); | ||||
m_axisLinePen = QPen(QRgb(0x0f0f0f)); | ||||
m_axisLinePen.setWidth(2); | ||||
m_axisLabelBrush = QBrush(QRgb(0xa0a071)); | ||||
m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons | ||||
m_backgroundShadesPen = Qt::NoPen; | ||||
m_gridLinePen = QPen(QRgb(0x0f0f0f)); | ||||
m_gridLinePen.setWidth(2); | ||||
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||