chartthemeicy_p.h
33 lines
| 996 B
| text/x-c
|
CLexer
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeIcy: public ChartTheme | ||||
{ | ||||
public: | ||||
|
r614 | ChartThemeIcy() : ChartTheme(QChart::ChartThemeIcy) | ||
|
r143 | { | ||
|
r548 | // Series | ||
m_seriesColors << QRgb(0x0d2673); | ||||
m_seriesColors << QRgb(0x2685bf); | ||||
m_seriesColors << QRgb(0x3dadd9); | ||||
m_seriesColors << QRgb(0x62c3d9); | ||||
|
r507 | generateSeriesGradients(); | ||
|
r494 | |||
|
r548 | // Background | ||
|
r494 | QLinearGradient backgroundGradient; | ||
|
r548 | backgroundGradient.setColorAt(0.0, QRgb(0xebebeb)); | ||
backgroundGradient.setColorAt(1.0, QRgb(0xf8f9fb)); | ||||
|
r494 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||
|
r584 | m_chartBackgroundGradient = backgroundGradient; | ||
|
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); | ||||
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||