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