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