chartthemeicy_p.h
37 lines
| 1.2 KiB
| text/x-c
|
CLexer
Michal Klocek
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeIcy: public ChartTheme | ||||
{ | ||||
public: | ||||
Michal Klocek
|
r153 | ChartThemeIcy():ChartTheme(QChart::ChartThemeIcy) | ||
Michal Klocek
|
r143 | { | ||
Tero Ahola
|
r548 | // Series | ||
m_seriesColors << QRgb(0x0d2673); | ||||
m_seriesColors << QRgb(0x2685bf); | ||||
m_seriesColors << QRgb(0x3dadd9); | ||||
m_seriesColors << QRgb(0x62c3d9); | ||||
Tero Ahola
|
r507 | generateSeriesGradients(); | ||
Jani Honkonen
|
r494 | |||
Tero Ahola
|
r548 | // Background | ||
Jani Honkonen
|
r494 | QLinearGradient backgroundGradient; | ||
Tero Ahola
|
r548 | backgroundGradient.setColorAt(0.0, QRgb(0xebebeb)); | ||
backgroundGradient.setColorAt(1.0, QRgb(0xf8f9fb)); | ||||
Jani Honkonen
|
r494 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||
Tero Ahola
|
r584 | m_chartBackgroundGradient = backgroundGradient; | ||
Tero Ahola
|
r548 | |||
// Axes and other | ||||
m_masterFont = QFont(); | ||||
m_axisLinePen = QPen(QRgb(0x0f0f0f)); | ||||
m_axisLinePen.setWidth(2); | ||||
m_axisLabelBrush = QBrush(QRgb(0x3f3f3f)); | ||||
m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons | ||||
m_backgroundShadesPen = Qt::NoPen; | ||||
Tero Ahola
|
r584 | m_backgroundShades = BackgroundShadesNone; | ||
Tero Ahola
|
r548 | m_gridLinePen = QPen(QRgb(0x0f0f0f)); | ||
m_gridLinePen.setWidth(2); | ||||
Michal Klocek
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||