##// 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 public:
7 public:
8 ChartThemeGrayscale():ChartTheme(QChart::ChartThemeGrayscale)
8 ChartThemeGrayscale():ChartTheme(QChart::ChartThemeGrayscale)
9 {
9 {
10 m_seriesColors << QRgb(0xFF869299);
10 m_seriesColors << QRgb(0xff869299);
11 m_seriesColors << QRgb(0xFFA5BDCC);
11 m_seriesColors << QRgb(0xffa5bdcc);
12 m_seriesColors << QRgb(0xFFE8FFFC);
12 m_seriesColors << QRgb(0xffe8fffc);
13 m_seriesColors << QRgb(0xFFCCC2C2);
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(0xffafafaf));
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(0xffBDE3F2));
18 backgroundGradient.setColorAt(0.0, QRgb(0xffebebeb));
19 backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
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(0xffafafaf));
18 backgroundGradient.setColorAt(0.0, QRgb(0xfffffefc));
19 backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
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 << QColor(217, 197, 116);
10 m_seriesColors << QRgb(0xffd9c574);
11 m_seriesColors << QColor(214, 168, 150);
11 m_seriesColors << QRgb(0xd6a896);
12 m_seriesColors << QColor(160, 160, 113);
12 m_seriesColors << QRgb(0xa0a071);
13 m_seriesColors << QColor(210, 210, 52);
13 m_seriesColors << QRgb(0xd2d234);
14 m_seriesColors << QColor(136, 114, 58);
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(0xff9d844d));
19 backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1));
20 backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
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