chartthemescientific_p.h
35 lines
| 1.1 KiB
| text/x-c
|
CLexer
Michal Klocek
|
r143 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeScientific: public ChartTheme | ||||
{ | ||||
public: | ||||
Tero Ahola
|
r614 | ChartThemeScientific() : ChartTheme(QChart::ChartThemeScientific) | ||
Michal Klocek
|
r143 | { | ||
Tero Ahola
|
r548 | // Series | ||
m_seriesColors << QRgb(0xFFAD00); | ||||
m_seriesColors << QRgb(0x596A75); | ||||
m_seriesColors << QRgb(0x202020); | ||||
m_seriesColors << QRgb(0x474747); | ||||
Tero Ahola
|
r523 | generateSeriesGradients(); | ||
Jani Honkonen
|
r494 | |||
Tero Ahola
|
r548 | // Background | ||
Jani Honkonen
|
r494 | QLinearGradient backgroundGradient; | ||
Tero Ahola
|
r548 | backgroundGradient.setColorAt(0.0, QRgb(0xfffefc)); | ||
backgroundGradient.setColorAt(1.0, QRgb(0xfffefc)); | ||||
Jani Honkonen
|
r494 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||
Tero Ahola
|
r584 | m_chartBackgroundGradient = backgroundGradient; | ||
Tero Ahola
|
r548 | |||
// Axes and other | ||||
m_axisLinePen = QPen(QRgb(0x0f0f0f)); | ||||
m_axisLinePen.setWidth(2); | ||||
m_axisLabelBrush = QBrush(QRgb(0x3f3f3f)); | ||||
Tero Ahola
|
r561 | m_backgroundShadesBrush = QBrush(QColor(0xff, 0xad, 0x00, 0x50)); | ||
m_backgroundShades = BackgroundShadesHorizontal; | ||||
Tero Ahola
|
r548 | m_gridLinePen = QPen(QRgb(0x0f0f0f)); | ||
m_gridLinePen.setWidth(2); | ||||
Michal Klocek
|
r143 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||