| 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 CHARTTHEMEBLUECERULEAN_P_H |
| 14 | #define CHARTTHEMEBLUECERULEAN_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_EXPORT ChartThemeBlueCerulean: public ChartTheme |
| 22 | { |
| 23 | public: |
| 24 | ChartThemeBlueCerulean() : ChartTheme(QChart::ChartThemeBlueCerulean) { |
| 25 | // Series colors |
| 26 | m_seriesColors << QRgb(0xc7e85b); |
| 27 | m_seriesColors << QRgb(0x1cb54f); |
| 28 | m_seriesColors << QRgb(0x5cbf9b); |
| 29 | m_seriesColors << QRgb(0x009fbf); |
| 30 | m_seriesColors << QRgb(0xee7392); |
| 31 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(colors: m_seriesColors); |
| 32 | |
| 33 | // Background |
| 34 | QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); |
| 35 | backgroundGradient.setColorAt(pos: 0.0, color: QRgb(0x056189)); |
| 36 | backgroundGradient.setColorAt(pos: 1.0, color: QRgb(0x101a31)); |
| 37 | backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); |
| 38 | m_chartBackgroundGradient = backgroundGradient; |
| 39 | |
| 40 | // Axes and other |
| 41 | m_labelBrush = QBrush(QRgb(0xffffff)); |
| 42 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); |
| 43 | m_axisLinePen.setWidth(2); |
| 44 | m_gridLinePen = QPen(QRgb(0x84a2b0)); |
| 45 | m_gridLinePen.setWidth(1); |
| 46 | m_minorGridLinePen = QPen(QRgb(0x84a2b0)); |
| 47 | m_minorGridLinePen.setWidth(1); |
| 48 | m_minorGridLinePen.setStyle(Qt::DashLine); |
| 49 | m_backgroundShades = BackgroundShadesNone; |
| 50 | m_outlinePen = QPen(QRgb(0xebebeb)); |
| 51 | m_outlinePen.setWidthF(2.0); |
| 52 | } |
| 53 | }; |
| 54 | |
| 55 | QT_END_NAMESPACE |
| 56 | |
| 57 | #endif |
| 58 |
