##// END OF EJS Templates
Fixed a bug in vanilla theme
Tero Ahola -
r526:8593b87d6899
parent child
Show More
@@ -1,25 +1,25
1 1 #include "charttheme_p.h"
2 2
3 3 QTCOMMERCIALCHART_BEGIN_NAMESPACE
4 4
5 5 class ChartThemeIcy: public ChartTheme
6 6 {
7 7 public:
8 8 ChartThemeIcy():ChartTheme(QChart::ChartThemeIcy)
9 9 {
10 m_seriesColors << QRgb(0xFF0D2673);
11 m_seriesColors << QRgb(0xFF2685BF);
12 m_seriesColors << QRgb(0xFF3DADD9);
13 m_seriesColors << QRgb(0xFF62C3D9);
10 m_seriesColors << QRgb(0xff0d2673);
11 m_seriesColors << QRgb(0xff2685bf);
12 m_seriesColors << QRgb(0xff3dadd9);
13 m_seriesColors << QRgb(0xff62c3d9);
14 14
15 15 generateSeriesGradients();
16 16
17 17 QLinearGradient backgroundGradient;
18 18 backgroundGradient.setColorAt(0.0, QRgb(0xffebebeb));
19 19 backgroundGradient.setColorAt(1.0, QRgb(0xfff8f9fb));
20 20 backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
21 21 m_backgroundGradient = backgroundGradient;
22 22 }
23 23 };
24 24
25 25 QTCOMMERCIALCHART_END_NAMESPACE
@@ -1,26 +1,26
1 1 #include "charttheme_p.h"
2 2
3 3 QTCOMMERCIALCHART_BEGIN_NAMESPACE
4 4
5 5 class ChartThemeVanilla: public ChartTheme
6 6 {
7 7 public:
8 8 ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla)
9 9 {
10 10 m_seriesColors << QRgb(0xffd9c574);
11 m_seriesColors << QRgb(0xd6a896);
12 m_seriesColors << QRgb(0xa0a071);
13 m_seriesColors << QRgb(0xd2d234);
14 m_seriesColors << QRgb(0x88723a);
11 m_seriesColors << QRgb(0xffd6a896);
12 m_seriesColors << QRgb(0xffa0a071);
13 m_seriesColors << QRgb(0xffd2d234);
14 m_seriesColors << QRgb(0xff88723a);
15 15
16 16 generateSeriesGradients();
17 17
18 18 QLinearGradient backgroundGradient;
19 19 backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1));
20 20 backgroundGradient.setColorAt(1.0, QRgb(0xfff5f0dc));
21 21 backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
22 22 m_backgroundGradient = backgroundGradient;
23 23 }
24 24 };
25 25
26 26 QTCOMMERCIALCHART_END_NAMESPACE
General Comments 0
You need to be logged in to leave comments. Login now