chartthemebluecerulean_p.h
32 lines
| 1022 B
| text/x-c
|
CLexer
Tero Ahola
|
r581 | #include "charttheme_p.h" | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartThemeBlueCerulean: public ChartTheme | ||||
{ | ||||
public: | ||||
ChartThemeBlueCerulean() : ChartTheme(QChart::ChartThemeBlueCerulean) | ||||
{ | ||||
// Series colors | ||||
m_seriesColors << QRgb(0xc7e85b); | ||||
m_seriesColors << QRgb(0x5dbe9b); | ||||
m_seriesColors << QRgb(0x4fbef3); | ||||
generateSeriesGradients(); | ||||
Tero Ahola
|
r584 | // No chart background, chart view specifies a background | ||
// TODO: what if the chart is drawn on custom graphics scene instead of QChartView? | ||||
Tero Ahola
|
r581 | |||
// Axes and other | ||||
m_masterFont = QFont(); | ||||
Tero Ahola
|
r584 | m_axisLinePen = QPen(QRgb(0xf7f7ff)); | ||
Tero Ahola
|
r581 | m_axisLinePen.setWidth(2); | ||
Tero Ahola
|
r584 | m_axisLabelBrush = QBrush(QRgb(0xf7f7ff)); | ||
Tero Ahola
|
r581 | m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons | ||
m_backgroundShadesPen = Qt::NoPen; | ||||
m_backgroundShades = BackgroundShadesNone; | ||||
Tero Ahola
|
r584 | m_gridLinePen = QPen(QRgb(0xf7f7ff)); | ||
m_gridLinePen.setWidth(1); | ||||
Tero Ahola
|
r581 | } | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||