@@ -7,16 +7,16 class ChartThemeGrayscale: public ChartTheme | |||||
7 | public: |
|
7 | public: | |
8 | ChartThemeGrayscale():ChartTheme(QChart::ChartThemeGrayscale) |
|
8 | ChartThemeGrayscale():ChartTheme(QChart::ChartThemeGrayscale) | |
9 | { |
|
9 | { | |
10 |
m_seriesColors << QRgb(0x |
|
10 | m_seriesColors << QRgb(0xff869299); | |
11 |
m_seriesColors << QRgb(0x |
|
11 | m_seriesColors << QRgb(0xffa5bdcc); | |
12 |
m_seriesColors << QRgb(0x |
|
12 | m_seriesColors << QRgb(0xffe8fffc); | |
13 |
m_seriesColors << QRgb(0x |
|
13 | m_seriesColors << QRgb(0xffccc2c2); | |
14 |
|
14 | |||
15 | generateSeriesGradients(); |
|
15 | generateSeriesGradients(); | |
16 |
|
16 | |||
17 | QLinearGradient backgroundGradient; |
|
17 | QLinearGradient backgroundGradient; | |
18 | backgroundGradient.setColorAt(0.0, QRgb(0xffffffff)); |
|
18 | backgroundGradient.setColorAt(0.0, QRgb(0xffffffff)); | |
19 |
backgroundGradient.setColorAt(1.0, QRgb(0xff |
|
19 | backgroundGradient.setColorAt(1.0, QRgb(0xffe0e3e5)); | |
20 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
20 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
21 | m_backgroundGradient = backgroundGradient; |
|
21 | m_backgroundGradient = backgroundGradient; | |
22 | } |
|
22 | } |
@@ -15,8 +15,8 public: | |||||
15 | generateSeriesGradients(); |
|
15 | generateSeriesGradients(); | |
16 |
|
16 | |||
17 | QLinearGradient backgroundGradient; |
|
17 | QLinearGradient backgroundGradient; | |
18 |
backgroundGradient.setColorAt(0.0, QRgb(0xff |
|
18 | backgroundGradient.setColorAt(0.0, QRgb(0xffebebeb)); | |
19 |
backgroundGradient.setColorAt(1.0, QRgb(0xff |
|
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 | } |
@@ -15,8 +15,8 public: | |||||
15 | generateSeriesGradients(); |
|
15 | generateSeriesGradients(); | |
16 |
|
16 | |||
17 | QLinearGradient backgroundGradient; |
|
17 | QLinearGradient backgroundGradient; | |
18 |
backgroundGradient.setColorAt(0.0, QRgb(0xff |
|
18 | backgroundGradient.setColorAt(0.0, QRgb(0xfffffefc)); | |
19 |
backgroundGradient.setColorAt(1.0, QRgb(0xff |
|
19 | backgroundGradient.setColorAt(1.0, QRgb(0xfffffefc)); | |
20 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
20 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
21 | m_backgroundGradient = backgroundGradient; |
|
21 | m_backgroundGradient = backgroundGradient; | |
22 | } |
|
22 | } |
@@ -7,17 +7,17 class ChartThemeVanilla: public ChartTheme | |||||
7 | public: |
|
7 | public: | |
8 | ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla) |
|
8 | ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla) | |
9 | { |
|
9 | { | |
10 |
m_seriesColors << Q |
|
10 | m_seriesColors << QRgb(0xffd9c574); | |
11 |
m_seriesColors << Q |
|
11 | m_seriesColors << QRgb(0xd6a896); | |
12 |
m_seriesColors << Q |
|
12 | m_seriesColors << QRgb(0xa0a071); | |
13 |
m_seriesColors << Q |
|
13 | m_seriesColors << QRgb(0xd2d234); | |
14 |
m_seriesColors << Q |
|
14 | m_seriesColors << QRgb(0x88723a); | |
15 |
|
15 | |||
16 | generateSeriesGradients(); |
|
16 | generateSeriesGradients(); | |
17 |
|
17 | |||
18 | QLinearGradient backgroundGradient; |
|
18 | QLinearGradient backgroundGradient; | |
19 |
backgroundGradient.setColorAt(0.0, QRgb(0xff |
|
19 | backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1)); | |
20 |
backgroundGradient.setColorAt(1.0, QRgb(0xff |
|
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 | } |
General Comments 0
You need to be logged in to leave comments.
Login now