chartthemescientific_p.h
25 lines
| 743 B
| text/x-c
|
CLexer
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeScientific: public ChartTheme | ||||
{ | ||||
public: | ||||
|
r153 | ChartThemeScientific():ChartTheme(QChart::ChartThemeScientific) | ||
|
r143 | { | ||
|
r494 | m_seriesColors << QRgb(0xFFFFAD00); | ||
m_seriesColors << QRgb(0xFF596A75); | ||||
|
r523 | m_seriesColors << QRgb(0xFF202020); | ||
|
r494 | m_seriesColors << QRgb(0xFF474747); | ||
|
r143 | |||
|
r523 | generateSeriesGradients(); | ||
|
r494 | |||
QLinearGradient backgroundGradient; | ||||
backgroundGradient.setColorAt(0.0, QRgb(0xffafafaf)); | ||||
backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf)); | ||||
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||||
m_backgroundGradient = backgroundGradient; | ||||
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||