chartthemegrayscale_p.h
33 lines
| 1021 B
| text/x-c
|
CLexer
Michal Klocek
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeGrayscale: public ChartTheme | ||||
{ | ||||
public: | ||||
Tero Ahola
|
r614 | ChartThemeGrayscale() : ChartTheme(QChart::ChartThemeGrayscale) | ||
Michal Klocek
|
r143 | { | ||
Tero Ahola
|
r548 | // Series colors | ||
m_seriesColors << QRgb(0x869299); | ||||
m_seriesColors << QRgb(0xa5bdcc); | ||||
m_seriesColors << QRgb(0xe8fffc); | ||||
m_seriesColors << QRgb(0xccc2c2); | ||||
Tero Ahola
|
r507 | generateSeriesGradients(); | ||
Jani Honkonen
|
r494 | |||
Tero Ahola
|
r548 | // Background | ||
Jani Honkonen
|
r494 | QLinearGradient backgroundGradient; | ||
Tero Ahola
|
r548 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | ||
backgroundGradient.setColorAt(1.0, QRgb(0xe0e3e5)); | ||||
Jani Honkonen
|
r494 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||
Tero Ahola
|
r584 | m_chartBackgroundGradient = backgroundGradient; | ||
Tero Ahola
|
r548 | |||
// Axes and other | ||||
m_axisLinePen = QPen(QRgb(0x0f0f0f)); | ||||
m_axisLinePen.setWidth(2); | ||||
m_axisLabelBrush = QBrush(QRgb(0x3f3f3f)); | ||||
m_gridLinePen = QPen(QRgb(0x0f0f0f)); | ||||
m_gridLinePen.setWidth(2); | ||||
Michal Klocek
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||