@@ -1,25 +1,25 | |||||
1 | #include "charttheme_p.h" |
|
1 | #include "charttheme_p.h" | |
2 |
|
2 | |||
3 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
3 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
4 |
|
4 | |||
5 | class ChartThemeIcy: public ChartTheme |
|
5 | class ChartThemeIcy: public ChartTheme | |
6 | { |
|
6 | { | |
7 | public: |
|
7 | public: | |
8 | ChartThemeIcy():ChartTheme(QChart::ChartThemeIcy) |
|
8 | ChartThemeIcy():ChartTheme(QChart::ChartThemeIcy) | |
9 | { |
|
9 | { | |
10 |
m_seriesColors << QRgb(0x |
|
10 | m_seriesColors << QRgb(0xff0d2673); | |
11 |
m_seriesColors << QRgb(0x |
|
11 | m_seriesColors << QRgb(0xff2685bf); | |
12 |
m_seriesColors << QRgb(0x |
|
12 | m_seriesColors << QRgb(0xff3dadd9); | |
13 |
m_seriesColors << QRgb(0x |
|
13 | m_seriesColors << QRgb(0xff62c3d9); | |
14 |
|
14 | |||
15 | generateSeriesGradients(); |
|
15 | generateSeriesGradients(); | |
16 |
|
16 | |||
17 | QLinearGradient backgroundGradient; |
|
17 | QLinearGradient backgroundGradient; | |
18 | backgroundGradient.setColorAt(0.0, QRgb(0xffebebeb)); |
|
18 | backgroundGradient.setColorAt(0.0, QRgb(0xffebebeb)); | |
19 | backgroundGradient.setColorAt(1.0, QRgb(0xfff8f9fb)); |
|
19 | backgroundGradient.setColorAt(1.0, QRgb(0xfff8f9fb)); | |
20 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
20 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
21 | m_backgroundGradient = backgroundGradient; |
|
21 | m_backgroundGradient = backgroundGradient; | |
22 | } |
|
22 | } | |
23 | }; |
|
23 | }; | |
24 |
|
24 | |||
25 | QTCOMMERCIALCHART_END_NAMESPACE |
|
25 | QTCOMMERCIALCHART_END_NAMESPACE |
@@ -1,26 +1,26 | |||||
1 | #include "charttheme_p.h" |
|
1 | #include "charttheme_p.h" | |
2 |
|
2 | |||
3 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
3 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
4 |
|
4 | |||
5 | class ChartThemeVanilla: public ChartTheme |
|
5 | class ChartThemeVanilla: public ChartTheme | |
6 | { |
|
6 | { | |
7 | public: |
|
7 | public: | |
8 | ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla) |
|
8 | ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla) | |
9 | { |
|
9 | { | |
10 | m_seriesColors << QRgb(0xffd9c574); |
|
10 | m_seriesColors << QRgb(0xffd9c574); | |
11 | m_seriesColors << QRgb(0xd6a896); |
|
11 | m_seriesColors << QRgb(0xffd6a896); | |
12 | m_seriesColors << QRgb(0xa0a071); |
|
12 | m_seriesColors << QRgb(0xffa0a071); | |
13 | m_seriesColors << QRgb(0xd2d234); |
|
13 | m_seriesColors << QRgb(0xffd2d234); | |
14 | m_seriesColors << QRgb(0x88723a); |
|
14 | m_seriesColors << QRgb(0xff88723a); | |
15 |
|
15 | |||
16 | generateSeriesGradients(); |
|
16 | generateSeriesGradients(); | |
17 |
|
17 | |||
18 | QLinearGradient backgroundGradient; |
|
18 | QLinearGradient backgroundGradient; | |
19 | backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1)); |
|
19 | backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1)); | |
20 | backgroundGradient.setColorAt(1.0, QRgb(0xfff5f0dc)); |
|
20 | backgroundGradient.setColorAt(1.0, QRgb(0xfff5f0dc)); | |
21 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
21 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
22 | m_backgroundGradient = backgroundGradient; |
|
22 | m_backgroundGradient = backgroundGradient; | |
23 | } |
|
23 | } | |
24 | }; |
|
24 | }; | |
25 |
|
25 | |||
26 | QTCOMMERCIALCHART_END_NAMESPACE |
|
26 | QTCOMMERCIALCHART_END_NAMESPACE |
General Comments 0
You need to be logged in to leave comments.
Login now