1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // W A R N I N G |
5 | // ------------- |
6 | // |
7 | // This file is not part of the Qt Chart API. It exists purely as an |
8 | // implementation detail. This header file may change from version to |
9 | // version without notice, or even be removed. |
10 | // |
11 | // We mean it. |
12 | |
13 | #ifndef CHARTTHEMEBROWNSAND_P_H |
14 | #define CHARTTHEMEBROWNSAND_P_H |
15 | |
16 | #include <private/charttheme_p.h> |
17 | #include <QtCharts/private/qchartglobal_p.h> |
18 | |
19 | QT_BEGIN_NAMESPACE |
20 | |
21 | class Q_CHARTS_PRIVATE_EXPORT ChartThemeBrownSand: public ChartTheme |
22 | { |
23 | public: |
24 | ChartThemeBrownSand() : ChartTheme(QChart::ChartThemeBrownSand) |
25 | { |
26 | // Series colors |
27 | m_seriesColors << QRgb(0xb39b72); |
28 | m_seriesColors << QRgb(0xb3b376); |
29 | m_seriesColors << QRgb(0xc35660); |
30 | m_seriesColors << QRgb(0x536780); |
31 | m_seriesColors << QRgb(0x494345); |
32 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(colors: m_seriesColors); |
33 | |
34 | // Background |
35 | QLinearGradient backgroundGradient; |
36 | backgroundGradient.setColorAt(pos: 0.0, color: QRgb(0xf3ece0)); |
37 | backgroundGradient.setColorAt(pos: 1.0, color: QRgb(0xf3ece0)); |
38 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
39 | m_chartBackgroundGradient = backgroundGradient; |
40 | |
41 | // Axes and other |
42 | m_labelBrush = QBrush(QRgb(0x404044)); |
43 | m_axisLinePen = QPen(QRgb(0xb5b0a7)); |
44 | m_axisLinePen.setWidth(2); |
45 | m_gridLinePen = QPen(QRgb(0xd4cec3)); |
46 | m_gridLinePen.setWidth(1); |
47 | m_minorGridLinePen = QPen(QRgb(0xd4cec3)); |
48 | m_minorGridLinePen.setWidth(1); |
49 | m_minorGridLinePen.setStyle(Qt::DashLine); |
50 | m_backgroundShades = BackgroundShadesNone; |
51 | m_outlinePen = QPen(QRgb(0x222222)); |
52 | m_outlinePen.setWidthF(2.0); |
53 | } |
54 | }; |
55 | |
56 | QT_END_NAMESPACE |
57 | |
58 | #endif |
59 |