chartthemevanilla_p.h
26 lines
| 778 B
| text/x-c
|
CLexer
Michal Klocek
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeVanilla: public ChartTheme | ||||
{ | ||||
public: | ||||
Michal Klocek
|
r153 | ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla) | ||
Michal Klocek
|
r143 | { | ||
Tero Ahola
|
r525 | m_seriesColors << QRgb(0xffd9c574); | ||
Tero Ahola
|
r526 | m_seriesColors << QRgb(0xffd6a896); | ||
m_seriesColors << QRgb(0xffa0a071); | ||||
m_seriesColors << QRgb(0xffd2d234); | ||||
m_seriesColors << QRgb(0xff88723a); | ||||
Jani Honkonen
|
r494 | |||
Tero Ahola
|
r507 | generateSeriesGradients(); | ||
Jani Honkonen
|
r494 | |||
QLinearGradient backgroundGradient; | ||||
Tero Ahola
|
r525 | backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1)); | ||
backgroundGradient.setColorAt(1.0, QRgb(0xfff5f0dc)); | ||||
Jani Honkonen
|
r494 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||
m_backgroundGradient = backgroundGradient; | ||||
Michal Klocek
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||