##// END OF EJS Templates
Lightened up chart backgrounds in themes
Tero Ahola -
r525:3ee88ebc786e
parent child
Show More
@@ -7,16 +7,16 class ChartThemeGrayscale: public ChartTheme
7 7 public:
8 8 ChartThemeGrayscale():ChartTheme(QChart::ChartThemeGrayscale)
9 9 {
10 m_seriesColors << QRgb(0xFF869299);
11 m_seriesColors << QRgb(0xFFA5BDCC);
12 m_seriesColors << QRgb(0xFFE8FFFC);
13 m_seriesColors << QRgb(0xFFCCC2C2);
10 m_seriesColors << QRgb(0xff869299);
11 m_seriesColors << QRgb(0xffa5bdcc);
12 m_seriesColors << QRgb(0xffe8fffc);
13 m_seriesColors << QRgb(0xffccc2c2);
14 14
15 15 generateSeriesGradients();
16 16
17 17 QLinearGradient backgroundGradient;
18 18 backgroundGradient.setColorAt(0.0, QRgb(0xffffffff));
19 backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
19 backgroundGradient.setColorAt(1.0, QRgb(0xffe0e3e5));
20 20 backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
21 21 m_backgroundGradient = backgroundGradient;
22 22 }
@@ -15,8 +15,8 public:
15 15 generateSeriesGradients();
16 16
17 17 QLinearGradient backgroundGradient;
18 backgroundGradient.setColorAt(0.0, QRgb(0xffBDE3F2));
19 backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
18 backgroundGradient.setColorAt(0.0, QRgb(0xffebebeb));
19 backgroundGradient.setColorAt(1.0, QRgb(0xfff8f9fb));
20 20 backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
21 21 m_backgroundGradient = backgroundGradient;
22 22 }
@@ -15,8 +15,8 public:
15 15 generateSeriesGradients();
16 16
17 17 QLinearGradient backgroundGradient;
18 backgroundGradient.setColorAt(0.0, QRgb(0xffafafaf));
19 backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
18 backgroundGradient.setColorAt(0.0, QRgb(0xfffffefc));
19 backgroundGradient.setColorAt(1.0, QRgb(0xfffffefc));
20 20 backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
21 21 m_backgroundGradient = backgroundGradient;
22 22 }
@@ -7,17 +7,17 class ChartThemeVanilla: public ChartTheme
7 7 public:
8 8 ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla)
9 9 {
10 m_seriesColors << QColor(217, 197, 116);
11 m_seriesColors << QColor(214, 168, 150);
12 m_seriesColors << QColor(160, 160, 113);
13 m_seriesColors << QColor(210, 210, 52);
14 m_seriesColors << QColor(136, 114, 58);
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);
15 15
16 16 generateSeriesGradients();
17 17
18 18 QLinearGradient backgroundGradient;
19 backgroundGradient.setColorAt(0.0, QRgb(0xff9d844d));
20 backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
19 backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1));
20 backgroundGradient.setColorAt(1.0, QRgb(0xfff5f0dc));
21 21 backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
22 22 m_backgroundGradient = backgroundGradient;
23 23 }
General Comments 0
You need to be logged in to leave comments. Login now