@@ -1,70 +1,70 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | // W A R N I N G |
|
21 | // W A R N I N G | |
22 | // ------------- |
|
22 | // ------------- | |
23 | // |
|
23 | // | |
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an |
|
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | |
25 | // implementation detail. This header file may change from version to |
|
25 | // implementation detail. This header file may change from version to | |
26 | // version without notice, or even be removed. |
|
26 | // version without notice, or even be removed. | |
27 | // |
|
27 | // | |
28 | // We mean it. |
|
28 | // We mean it. | |
29 |
|
29 | |||
30 | #ifndef CHARTTHEMEBLUECERULEAN_P_H |
|
30 | #ifndef CHARTTHEMEBLUECERULEAN_P_H | |
31 | #define CHARTTHEMEBLUECERULEAN_P_H |
|
31 | #define CHARTTHEMEBLUECERULEAN_P_H | |
32 |
|
32 | |||
33 | #include "charttheme_p.h" |
|
33 | #include "charttheme_p.h" | |
34 |
|
34 | |||
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
36 |
|
36 | |||
37 | class ChartThemeBlueCerulean: public ChartTheme |
|
37 | class ChartThemeBlueCerulean: public ChartTheme | |
38 | { |
|
38 | { | |
39 | public: |
|
39 | public: | |
40 | ChartThemeBlueCerulean() : ChartTheme(QChart::ChartThemeBlueCerulean) { |
|
40 | ChartThemeBlueCerulean() : ChartTheme(QChart::ChartThemeBlueCerulean) { | |
41 | // Series colors |
|
41 | // Series colors | |
42 | m_seriesColors << QRgb(0xc7e85b); |
|
42 | m_seriesColors << QRgb(0xc7e85b); | |
43 | m_seriesColors << QRgb(0x1cb54f); |
|
43 | m_seriesColors << QRgb(0x1cb54f); | |
44 | m_seriesColors << QRgb(0x5cbf9b); |
|
44 | m_seriesColors << QRgb(0x5cbf9b); | |
45 | m_seriesColors << QRgb(0x009fbf); |
|
45 | m_seriesColors << QRgb(0x009fbf); | |
46 | m_seriesColors << QRgb(0xee7392); |
|
46 | m_seriesColors << QRgb(0xee7392); | |
47 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); |
|
47 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | |
48 |
|
48 | |||
49 | // Background |
|
49 | // Background | |
50 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); |
|
50 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); | |
51 | backgroundGradient.setColorAt(0.0, QRgb(0x056189)); |
|
51 | backgroundGradient.setColorAt(0.0, QRgb(0x056189)); | |
52 | backgroundGradient.setColorAt(1.0, QRgb(0x101a31)); |
|
52 | backgroundGradient.setColorAt(1.0, QRgb(0x101a31)); | |
53 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
53 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
54 | m_chartBackgroundGradient = backgroundGradient; |
|
54 | m_chartBackgroundGradient = backgroundGradient; | |
55 |
|
55 | |||
56 | // Axes and other |
|
56 | // Axes and other | |
57 | m_labelBrush = QBrush(QRgb(0xffffff)); |
|
57 | m_labelBrush = QBrush(QRgb(0xffffff)); | |
58 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); |
|
58 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); | |
59 | m_axisLinePen.setWidth(2); |
|
59 | m_axisLinePen.setWidth(2); | |
60 | m_gridLinePen = QPen(QRgb(0x84a2b0)); |
|
60 | m_gridLinePen = QPen(QRgb(0x84a2b0)); | |
61 | m_gridLinePen.setWidth(1); |
|
61 | m_gridLinePen.setWidth(1); | |
62 | m_backgroundShades = BackgroundShadesNone; |
|
62 | m_backgroundShades = BackgroundShadesNone; | |
63 |
m_outlinePen = QPen(QRgb(0x |
|
63 | m_outlinePen = QPen(QRgb(0xebebeb)); | |
64 | m_outlinePen.setWidthF(2.0); |
|
64 | m_outlinePen.setWidthF(2.0); | |
65 | } |
|
65 | } | |
66 | }; |
|
66 | }; | |
67 |
|
67 | |||
68 | QTCOMMERCIALCHART_END_NAMESPACE |
|
68 | QTCOMMERCIALCHART_END_NAMESPACE | |
69 |
|
69 | |||
70 | #endif |
|
70 | #endif |
@@ -1,72 +1,72 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | // W A R N I N G |
|
21 | // W A R N I N G | |
22 | // ------------- |
|
22 | // ------------- | |
23 | // |
|
23 | // | |
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an |
|
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | |
25 | // implementation detail. This header file may change from version to |
|
25 | // implementation detail. This header file may change from version to | |
26 | // version without notice, or even be removed. |
|
26 | // version without notice, or even be removed. | |
27 | // |
|
27 | // | |
28 | // We mean it. |
|
28 | // We mean it. | |
29 |
|
29 | |||
30 | #ifndef CHARTTHEMEBLUEICY_P_H |
|
30 | #ifndef CHARTTHEMEBLUEICY_P_H | |
31 | #define CHARTTHEMEBLUEICY_P_H |
|
31 | #define CHARTTHEMEBLUEICY_P_H | |
32 |
|
32 | |||
33 | #include "charttheme_p.h" |
|
33 | #include "charttheme_p.h" | |
34 |
|
34 | |||
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
36 |
|
36 | |||
37 | class ChartThemeBlueIcy: public ChartTheme |
|
37 | class ChartThemeBlueIcy: public ChartTheme | |
38 | { |
|
38 | { | |
39 | public: |
|
39 | public: | |
40 | ChartThemeBlueIcy() : ChartTheme(QChart::ChartThemeBlueIcy) |
|
40 | ChartThemeBlueIcy() : ChartTheme(QChart::ChartThemeBlueIcy) | |
41 | { |
|
41 | { | |
42 | // Series colors |
|
42 | // Series colors | |
43 | m_seriesColors << QRgb(0x3daeda); |
|
43 | m_seriesColors << QRgb(0x3daeda); | |
44 | m_seriesColors << QRgb(0x2685bf); |
|
44 | m_seriesColors << QRgb(0x2685bf); | |
45 | m_seriesColors << QRgb(0x0c2673); |
|
45 | m_seriesColors << QRgb(0x0c2673); | |
46 | m_seriesColors << QRgb(0x5f3dba); |
|
46 | m_seriesColors << QRgb(0x5f3dba); | |
47 | m_seriesColors << QRgb(0x2fa3b4); |
|
47 | m_seriesColors << QRgb(0x2fa3b4); | |
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); |
|
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | |
49 |
|
49 | |||
50 | // Background |
|
50 | // Background | |
51 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); |
|
51 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); | |
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); |
|
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | |
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); |
|
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); | |
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
55 | m_chartBackgroundGradient = backgroundGradient; |
|
55 | m_chartBackgroundGradient = backgroundGradient; | |
56 | m_backgroundDropShadowEnabled = true; |
|
56 | m_backgroundDropShadowEnabled = true; | |
57 |
|
57 | |||
58 | // Axes and other |
|
58 | // Axes and other | |
59 | m_labelBrush = QBrush(QRgb(0x404044)); |
|
59 | m_labelBrush = QBrush(QRgb(0x404044)); | |
60 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); |
|
60 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); | |
61 | m_axisLinePen.setWidth(2); |
|
61 | m_axisLinePen.setWidth(2); | |
62 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); |
|
62 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); | |
63 | m_gridLinePen.setWidth(1); |
|
63 | m_gridLinePen.setWidth(1); | |
64 | m_backgroundShades = BackgroundShadesNone; |
|
64 | m_backgroundShades = BackgroundShadesNone; | |
65 |
m_outlinePen = QPen(Q |
|
65 | m_outlinePen = QPen(QRgb(0x474747)); | |
66 | m_outlinePen.setWidthF(2.0); |
|
66 | m_outlinePen.setWidthF(2.0); | |
67 | } |
|
67 | } | |
68 | }; |
|
68 | }; | |
69 |
|
69 | |||
70 | QTCOMMERCIALCHART_END_NAMESPACE |
|
70 | QTCOMMERCIALCHART_END_NAMESPACE | |
71 |
|
71 | |||
72 | #endif |
|
72 | #endif |
@@ -1,71 +1,71 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | // W A R N I N G |
|
21 | // W A R N I N G | |
22 | // ------------- |
|
22 | // ------------- | |
23 | // |
|
23 | // | |
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an |
|
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | |
25 | // implementation detail. This header file may change from version to |
|
25 | // implementation detail. This header file may change from version to | |
26 | // version without notice, or even be removed. |
|
26 | // version without notice, or even be removed. | |
27 | // |
|
27 | // | |
28 | // We mean it. |
|
28 | // We mean it. | |
29 |
|
29 | |||
30 | #ifndef CHARTTHEMEBLUENCS_P_H |
|
30 | #ifndef CHARTTHEMEBLUENCS_P_H | |
31 | #define CHARTTHEMEBLUENCS_P_H |
|
31 | #define CHARTTHEMEBLUENCS_P_H | |
32 |
|
32 | |||
33 | #include "charttheme_p.h" |
|
33 | #include "charttheme_p.h" | |
34 |
|
34 | |||
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
36 |
|
36 | |||
37 | class ChartThemeBlueNcs: public ChartTheme |
|
37 | class ChartThemeBlueNcs: public ChartTheme | |
38 | { |
|
38 | { | |
39 | public: |
|
39 | public: | |
40 | ChartThemeBlueNcs() : ChartTheme(QChart::ChartThemeBlueNcs) |
|
40 | ChartThemeBlueNcs() : ChartTheme(QChart::ChartThemeBlueNcs) | |
41 | { |
|
41 | { | |
42 | // Series colors |
|
42 | // Series colors | |
43 | m_seriesColors << QRgb(0x1db0da); |
|
43 | m_seriesColors << QRgb(0x1db0da); | |
44 | m_seriesColors << QRgb(0x1341a6); |
|
44 | m_seriesColors << QRgb(0x1341a6); | |
45 | m_seriesColors << QRgb(0x88d41e); |
|
45 | m_seriesColors << QRgb(0x88d41e); | |
46 | m_seriesColors << QRgb(0xff8e1a); |
|
46 | m_seriesColors << QRgb(0xff8e1a); | |
47 | m_seriesColors << QRgb(0x398ca3); |
|
47 | m_seriesColors << QRgb(0x398ca3); | |
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); |
|
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | |
49 |
|
49 | |||
50 | // Background |
|
50 | // Background | |
51 | QLinearGradient backgroundGradient; |
|
51 | QLinearGradient backgroundGradient; | |
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); |
|
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | |
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); |
|
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); | |
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
55 | m_chartBackgroundGradient = backgroundGradient; |
|
55 | m_chartBackgroundGradient = backgroundGradient; | |
56 |
|
56 | |||
57 | // Axes and other |
|
57 | // Axes and other | |
58 | m_labelBrush = QBrush(QRgb(0x404044)); |
|
58 | m_labelBrush = QBrush(QRgb(0x404044)); | |
59 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); |
|
59 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); | |
60 | m_axisLinePen.setWidth(2); |
|
60 | m_axisLinePen.setWidth(2); | |
61 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); |
|
61 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); | |
62 | m_gridLinePen.setWidth(1); |
|
62 | m_gridLinePen.setWidth(1); | |
63 | m_backgroundShades = BackgroundShadesNone; |
|
63 | m_backgroundShades = BackgroundShadesNone; | |
64 |
m_outlinePen = QPen(Q |
|
64 | m_outlinePen = QPen(QRgb(0x474747)); | |
65 | m_outlinePen.setWidthF(2.0); |
|
65 | m_outlinePen.setWidthF(2.0); | |
66 | } |
|
66 | } | |
67 | }; |
|
67 | }; | |
68 |
|
68 | |||
69 | QTCOMMERCIALCHART_END_NAMESPACE |
|
69 | QTCOMMERCIALCHART_END_NAMESPACE | |
70 |
|
70 | |||
71 | #endif |
|
71 | #endif |
@@ -1,71 +1,71 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | // W A R N I N G |
|
21 | // W A R N I N G | |
22 | // ------------- |
|
22 | // ------------- | |
23 | // |
|
23 | // | |
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an |
|
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | |
25 | // implementation detail. This header file may change from version to |
|
25 | // implementation detail. This header file may change from version to | |
26 | // version without notice, or even be removed. |
|
26 | // version without notice, or even be removed. | |
27 | // |
|
27 | // | |
28 | // We mean it. |
|
28 | // We mean it. | |
29 |
|
29 | |||
30 | #ifndef CHARTTHEMEBROWNSAND_P_H |
|
30 | #ifndef CHARTTHEMEBROWNSAND_P_H | |
31 | #define CHARTTHEMEBROWNSAND_P_H |
|
31 | #define CHARTTHEMEBROWNSAND_P_H | |
32 |
|
32 | |||
33 | #include "charttheme_p.h" |
|
33 | #include "charttheme_p.h" | |
34 |
|
34 | |||
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
36 |
|
36 | |||
37 | class ChartThemeBrownSand: public ChartTheme |
|
37 | class ChartThemeBrownSand: public ChartTheme | |
38 | { |
|
38 | { | |
39 | public: |
|
39 | public: | |
40 | ChartThemeBrownSand() : ChartTheme(QChart::ChartThemeBrownSand) |
|
40 | ChartThemeBrownSand() : ChartTheme(QChart::ChartThemeBrownSand) | |
41 | { |
|
41 | { | |
42 | // Series colors |
|
42 | // Series colors | |
43 | m_seriesColors << QRgb(0xb39b72); |
|
43 | m_seriesColors << QRgb(0xb39b72); | |
44 | m_seriesColors << QRgb(0xb3b376); |
|
44 | m_seriesColors << QRgb(0xb3b376); | |
45 | m_seriesColors << QRgb(0xc35660); |
|
45 | m_seriesColors << QRgb(0xc35660); | |
46 | m_seriesColors << QRgb(0x536780); |
|
46 | m_seriesColors << QRgb(0x536780); | |
47 | m_seriesColors << QRgb(0x494345); |
|
47 | m_seriesColors << QRgb(0x494345); | |
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); |
|
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | |
49 |
|
49 | |||
50 | // Background |
|
50 | // Background | |
51 | QLinearGradient backgroundGradient; |
|
51 | QLinearGradient backgroundGradient; | |
52 | backgroundGradient.setColorAt(0.0, QRgb(0xf3ece0)); |
|
52 | backgroundGradient.setColorAt(0.0, QRgb(0xf3ece0)); | |
53 | backgroundGradient.setColorAt(1.0, QRgb(0xf3ece0)); |
|
53 | backgroundGradient.setColorAt(1.0, QRgb(0xf3ece0)); | |
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
55 | m_chartBackgroundGradient = backgroundGradient; |
|
55 | m_chartBackgroundGradient = backgroundGradient; | |
56 |
|
56 | |||
57 | // Axes and other |
|
57 | // Axes and other | |
58 | m_labelBrush = QBrush(QRgb(0x404044)); |
|
58 | m_labelBrush = QBrush(QRgb(0x404044)); | |
59 | m_axisLinePen = QPen(QRgb(0xb5b0a7)); |
|
59 | m_axisLinePen = QPen(QRgb(0xb5b0a7)); | |
60 | m_axisLinePen.setWidth(2); |
|
60 | m_axisLinePen.setWidth(2); | |
61 | m_gridLinePen = QPen(QRgb(0xd4cec3)); |
|
61 | m_gridLinePen = QPen(QRgb(0xd4cec3)); | |
62 | m_gridLinePen.setWidth(1); |
|
62 | m_gridLinePen.setWidth(1); | |
63 | m_backgroundShades = BackgroundShadesNone; |
|
63 | m_backgroundShades = BackgroundShadesNone; | |
64 |
m_outlinePen = QPen(Q |
|
64 | m_outlinePen = QPen(QRgb(0x222222)); | |
65 | m_outlinePen.setWidthF(2.0); |
|
65 | m_outlinePen.setWidthF(2.0); | |
66 | } |
|
66 | } | |
67 | }; |
|
67 | }; | |
68 |
|
68 | |||
69 | QTCOMMERCIALCHART_END_NAMESPACE |
|
69 | QTCOMMERCIALCHART_END_NAMESPACE | |
70 |
|
70 | |||
71 | #endif |
|
71 | #endif |
@@ -1,71 +1,71 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | // W A R N I N G |
|
21 | // W A R N I N G | |
22 | // ------------- |
|
22 | // ------------- | |
23 | // |
|
23 | // | |
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an |
|
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | |
25 | // implementation detail. This header file may change from version to |
|
25 | // implementation detail. This header file may change from version to | |
26 | // version without notice, or even be removed. |
|
26 | // version without notice, or even be removed. | |
27 | // |
|
27 | // | |
28 | // We mean it. |
|
28 | // We mean it. | |
29 |
|
29 | |||
30 | #ifndef CHARTTHEMEDARK_P_H |
|
30 | #ifndef CHARTTHEMEDARK_P_H | |
31 | #define CHARTTHEMEDARK_P_H |
|
31 | #define CHARTTHEMEDARK_P_H | |
32 |
|
32 | |||
33 | #include "charttheme_p.h" |
|
33 | #include "charttheme_p.h" | |
34 |
|
34 | |||
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
36 |
|
36 | |||
37 | class ChartThemeDark : public ChartTheme |
|
37 | class ChartThemeDark : public ChartTheme | |
38 | { |
|
38 | { | |
39 | public: |
|
39 | public: | |
40 | ChartThemeDark() : ChartTheme(QChart::ChartThemeDark) |
|
40 | ChartThemeDark() : ChartTheme(QChart::ChartThemeDark) | |
41 | { |
|
41 | { | |
42 | // Series colors |
|
42 | // Series colors | |
43 | m_seriesColors << QRgb(0x38ad6b); |
|
43 | m_seriesColors << QRgb(0x38ad6b); | |
44 | m_seriesColors << QRgb(0x3c84a7); |
|
44 | m_seriesColors << QRgb(0x3c84a7); | |
45 | m_seriesColors << QRgb(0xeb8817); |
|
45 | m_seriesColors << QRgb(0xeb8817); | |
46 | m_seriesColors << QRgb(0x7b7f8c); |
|
46 | m_seriesColors << QRgb(0x7b7f8c); | |
47 | m_seriesColors << QRgb(0xbf593e); |
|
47 | m_seriesColors << QRgb(0xbf593e); | |
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); |
|
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | |
49 |
|
49 | |||
50 | // Background |
|
50 | // Background | |
51 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); |
|
51 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); | |
52 | backgroundGradient.setColorAt(0.0, QRgb(0x2e303a)); |
|
52 | backgroundGradient.setColorAt(0.0, QRgb(0x2e303a)); | |
53 | backgroundGradient.setColorAt(1.0, QRgb(0x121218)); |
|
53 | backgroundGradient.setColorAt(1.0, QRgb(0x121218)); | |
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
55 | m_chartBackgroundGradient = backgroundGradient; |
|
55 | m_chartBackgroundGradient = backgroundGradient; | |
56 |
|
56 | |||
57 | // Axes and other |
|
57 | // Axes and other | |
58 | m_labelBrush = QBrush(QRgb(0xffffff)); |
|
58 | m_labelBrush = QBrush(QRgb(0xffffff)); | |
59 | m_axisLinePen = QPen(QRgb(0x86878c)); |
|
59 | m_axisLinePen = QPen(QRgb(0x86878c)); | |
60 | m_axisLinePen.setWidth(2); |
|
60 | m_axisLinePen.setWidth(2); | |
61 | m_gridLinePen = QPen(QRgb(0x86878c)); |
|
61 | m_gridLinePen = QPen(QRgb(0x86878c)); | |
62 | m_gridLinePen.setWidth(1); |
|
62 | m_gridLinePen.setWidth(1); | |
63 | m_backgroundShades = BackgroundShadesNone; |
|
63 | m_backgroundShades = BackgroundShadesNone; | |
64 | m_outlinePen = QPen(QRgb(0xd6d6d6)); |
|
64 | m_outlinePen = QPen(QRgb(0xd6d6d6)); | |
65 |
m_outlinePen.setWidthF( |
|
65 | m_outlinePen.setWidthF(2.0); | |
66 | } |
|
66 | } | |
67 | }; |
|
67 | }; | |
68 |
|
68 | |||
69 | QTCOMMERCIALCHART_END_NAMESPACE |
|
69 | QTCOMMERCIALCHART_END_NAMESPACE | |
70 |
|
70 | |||
71 | #endif |
|
71 | #endif |
@@ -1,73 +1,73 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | // W A R N I N G |
|
21 | // W A R N I N G | |
22 | // ------------- |
|
22 | // ------------- | |
23 | // |
|
23 | // | |
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an |
|
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | |
25 | // implementation detail. This header file may change from version to |
|
25 | // implementation detail. This header file may change from version to | |
26 | // version without notice, or even be removed. |
|
26 | // version without notice, or even be removed. | |
27 | // |
|
27 | // | |
28 | // We mean it. |
|
28 | // We mean it. | |
29 |
|
29 | |||
30 | #ifndef CHARTTHEMEHIGHCONTRAST_P_H |
|
30 | #ifndef CHARTTHEMEHIGHCONTRAST_P_H | |
31 | #define CHARTTHEMEHIGHCONTRAST_P_H |
|
31 | #define CHARTTHEMEHIGHCONTRAST_P_H | |
32 |
|
32 | |||
33 | #include "charttheme_p.h" |
|
33 | #include "charttheme_p.h" | |
34 |
|
34 | |||
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
36 |
|
36 | |||
37 | class ChartThemeHighContrast : public ChartTheme |
|
37 | class ChartThemeHighContrast : public ChartTheme | |
38 | { |
|
38 | { | |
39 | public: |
|
39 | public: | |
40 | ChartThemeHighContrast() : ChartTheme(QChart::ChartThemeHighContrast) |
|
40 | ChartThemeHighContrast() : ChartTheme(QChart::ChartThemeHighContrast) | |
41 | { |
|
41 | { | |
42 | // Series colors |
|
42 | // Series colors | |
43 | m_seriesColors << QRgb(0x202020); |
|
43 | m_seriesColors << QRgb(0x202020); | |
44 | m_seriesColors << QRgb(0x596a74); |
|
44 | m_seriesColors << QRgb(0x596a74); | |
45 | m_seriesColors << QRgb(0xffab03); |
|
45 | m_seriesColors << QRgb(0xffab03); | |
46 | m_seriesColors << QRgb(0x038e9b); |
|
46 | m_seriesColors << QRgb(0x038e9b); | |
47 | m_seriesColors << QRgb(0xff4a41); |
|
47 | m_seriesColors << QRgb(0xff4a41); | |
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); |
|
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | |
49 |
|
49 | |||
50 | // Background |
|
50 | // Background | |
51 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); |
|
51 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); | |
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); |
|
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | |
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); |
|
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); | |
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
55 | m_chartBackgroundGradient = backgroundGradient; |
|
55 | m_chartBackgroundGradient = backgroundGradient; | |
56 | m_backgroundDropShadowEnabled = true; |
|
56 | m_backgroundDropShadowEnabled = true; | |
57 |
|
57 | |||
58 | // Axes and other |
|
58 | // Axes and other | |
59 | m_labelBrush = QBrush(QRgb(0x181818)); |
|
59 | m_labelBrush = QBrush(QRgb(0x181818)); | |
60 | m_axisLinePen = QPen(QRgb(0x8c8c8c)); |
|
60 | m_axisLinePen = QPen(QRgb(0x8c8c8c)); | |
61 | m_axisLinePen.setWidth(2); |
|
61 | m_axisLinePen.setWidth(2); | |
62 | m_gridLinePen = QPen(QRgb(0x8c8c8c)); |
|
62 | m_gridLinePen = QPen(QRgb(0x8c8c8c)); | |
63 | m_gridLinePen.setWidth(1); |
|
63 | m_gridLinePen.setWidth(1); | |
64 | m_backgroundShadesBrush = QBrush(QRgb(0xffeecd)); |
|
64 | m_backgroundShadesBrush = QBrush(QRgb(0xffeecd)); | |
65 | m_backgroundShades = BackgroundShadesHorizontal; |
|
65 | m_backgroundShades = BackgroundShadesHorizontal; | |
66 | m_outlinePen = QPen(QColor(Qt::black)); |
|
66 | m_outlinePen = QPen(QColor(Qt::black)); | |
67 |
m_outlinePen.setWidthF( |
|
67 | m_outlinePen.setWidthF(2.0); | |
68 | } |
|
68 | } | |
69 | }; |
|
69 | }; | |
70 |
|
70 | |||
71 | QTCOMMERCIALCHART_END_NAMESPACE |
|
71 | QTCOMMERCIALCHART_END_NAMESPACE | |
72 |
|
72 | |||
73 | #endif |
|
73 | #endif |
@@ -1,73 +1,73 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | // W A R N I N G |
|
21 | // W A R N I N G | |
22 | // ------------- |
|
22 | // ------------- | |
23 | // |
|
23 | // | |
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an |
|
24 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | |
25 | // implementation detail. This header file may change from version to |
|
25 | // implementation detail. This header file may change from version to | |
26 | // version without notice, or even be removed. |
|
26 | // version without notice, or even be removed. | |
27 | // |
|
27 | // | |
28 | // We mean it. |
|
28 | // We mean it. | |
29 |
|
29 | |||
30 | #ifndef CHARTTHEMELIGHT_P_H |
|
30 | #ifndef CHARTTHEMELIGHT_P_H | |
31 | #define CHARTTHEMELIGHT_P_H |
|
31 | #define CHARTTHEMELIGHT_P_H | |
32 |
|
32 | |||
33 | #include "charttheme_p.h" |
|
33 | #include "charttheme_p.h" | |
34 |
|
34 | |||
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
35 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
36 |
|
36 | |||
37 | class ChartThemeLight: public ChartTheme |
|
37 | class ChartThemeLight: public ChartTheme | |
38 | { |
|
38 | { | |
39 | public: |
|
39 | public: | |
40 | ChartThemeLight() : ChartTheme(QChart::ChartThemeLight) |
|
40 | ChartThemeLight() : ChartTheme(QChart::ChartThemeLight) | |
41 | { |
|
41 | { | |
42 | // Series colors |
|
42 | // Series colors | |
43 | m_seriesColors << QRgb(0x209fdf); |
|
43 | m_seriesColors << QRgb(0x209fdf); | |
44 | m_seriesColors << QRgb(0x99ca53); |
|
44 | m_seriesColors << QRgb(0x99ca53); | |
45 | m_seriesColors << QRgb(0xf6a625); |
|
45 | m_seriesColors << QRgb(0xf6a625); | |
46 | m_seriesColors << QRgb(0x6d5fd5); |
|
46 | m_seriesColors << QRgb(0x6d5fd5); | |
47 | m_seriesColors << QRgb(0xbf593e); |
|
47 | m_seriesColors << QRgb(0xbf593e); | |
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); |
|
48 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | |
49 |
|
49 | |||
50 | // Background |
|
50 | // Background | |
51 | QLinearGradient backgroundGradient; |
|
51 | QLinearGradient backgroundGradient; | |
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); |
|
52 | backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | |
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); |
|
53 | backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); | |
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
|
54 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | |
55 | m_chartBackgroundGradient = backgroundGradient; |
|
55 | m_chartBackgroundGradient = backgroundGradient; | |
56 | // There is a performance issue in the drop shadow implementation, so disabled for now |
|
56 | // There is a performance issue in the drop shadow implementation, so disabled for now | |
57 | // m_backgroundDropShadowEnabled = true; |
|
57 | // m_backgroundDropShadowEnabled = true; | |
58 |
|
58 | |||
59 | // Axes and other |
|
59 | // Axes and other | |
60 | m_axisLinePen = QPen(0xd6d6d6); |
|
60 | m_axisLinePen = QPen(0xd6d6d6); | |
61 | m_axisLinePen.setWidth(1); |
|
61 | m_axisLinePen.setWidth(1); | |
62 | m_labelBrush = QBrush(QRgb(0x404044)); |
|
62 | m_labelBrush = QBrush(QRgb(0x404044)); | |
63 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); |
|
63 | m_gridLinePen = QPen(QRgb(0xe2e2e2)); | |
64 | m_gridLinePen.setWidth(1); |
|
64 | m_gridLinePen.setWidth(1); | |
65 | m_backgroundShades = BackgroundShadesNone; |
|
65 | m_backgroundShades = BackgroundShadesNone; | |
66 |
m_outlinePen = QPen( |
|
66 | m_outlinePen = QPen(0x4d4d4d); | |
67 | m_outlinePen.setWidthF(2.0); |
|
67 | m_outlinePen.setWidthF(2.0); | |
68 | } |
|
68 | } | |
69 | }; |
|
69 | }; | |
70 |
|
70 | |||
71 | QTCOMMERCIALCHART_END_NAMESPACE |
|
71 | QTCOMMERCIALCHART_END_NAMESPACE | |
72 |
|
72 | |||
73 | #endif |
|
73 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now