@@ -1,36 +1,38 | |||||
1 | #include "charttheme_p.h" |
|
1 | #include "charttheme_p.h" | |
2 |
|
2 | |||
3 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
3 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
4 |
|
4 | |||
5 | class ChartThemeLight: public ChartTheme |
|
5 | class ChartThemeLight: public ChartTheme | |
6 | { |
|
6 | { | |
7 | public: |
|
7 | public: | |
8 | ChartThemeLight() : ChartTheme(QChart::ChartThemeLight) |
|
8 | ChartThemeLight() : ChartTheme(QChart::ChartThemeLight) | |
9 | { |
|
9 | { | |
10 | // Series colors |
|
10 | // Series colors | |
11 |
m_seriesColors << QRgb(0x |
|
11 | m_seriesColors << QRgb(0x209fdf); | |
12 |
m_seriesColors << QRgb(0x |
|
12 | m_seriesColors << QRgb(0x99ca53); | |
13 |
m_seriesColors << QRgb(0x |
|
13 | m_seriesColors << QRgb(0xf6a625); | |
|
14 | m_seriesColors << QRgb(0x6d5fd5); | |||
|
15 | m_seriesColors << QRgb(0xbf593e); | |||
14 | generateSeriesGradients(); |
|
16 | generateSeriesGradients(); | |
15 |
|
17 | |||
16 | // Background |
|
18 | // Background | |
17 | QLinearGradient backgroundGradient; |
|
19 | QLinearGradient backgroundGradient; | |
18 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); |
|
20 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | |
19 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); |
|
21 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); | |
20 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
22 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
21 | m_chartBackgroundGradient = backgroundGradient; |
|
23 | m_chartBackgroundGradient = backgroundGradient; | |
22 |
|
24 | |||
23 | // Axes and other |
|
25 | // Axes and other | |
24 | m_masterFont = QFont(); |
|
26 | m_masterFont = QFont(); | |
25 |
m_axisLinePen = QPen(QRgb(0x |
|
27 | m_axisLinePen = QPen(QRgb(0xe2e2e2)); | |
26 | m_axisLinePen.setWidth(1); |
|
28 | m_axisLinePen.setWidth(1); | |
27 |
m_axisLabelBrush = QBrush(QRgb(0x |
|
29 | m_axisLabelBrush = QBrush(QRgb(0x838383)); | |
28 | m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons |
|
30 | m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons | |
29 | m_backgroundShadesPen = Qt::NoPen; |
|
31 | m_backgroundShadesPen = Qt::NoPen; | |
30 | m_backgroundShades = BackgroundShadesNone; |
|
32 | m_backgroundShades = BackgroundShadesNone; | |
31 |
m_gridLinePen = QPen(QRgb(0x |
|
33 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); | |
32 | m_gridLinePen.setWidth(1); |
|
34 | m_gridLinePen.setWidth(1); | |
33 | } |
|
35 | } | |
34 | }; |
|
36 | }; | |
35 |
|
37 | |||
36 | QTCOMMERCIALCHART_END_NAMESPACE |
|
38 | QTCOMMERCIALCHART_END_NAMESPACE |
General Comments 0
You need to be logged in to leave comments.
Login now