chartthemeblueicy_p.h
76 lines
| 2.5 KiB
| text/x-c
|
CLexer
Titta Heikkala
|
r2845 | /****************************************************************************** | ||
Jani Honkonen
|
r794 | ** | ||
Titta Heikkala
|
r2845 | ** Copyright (C) 2015 The Qt Company Ltd. | ||
** Contact: http://www.qt.io/licensing/ | ||||
Jani Honkonen
|
r794 | ** | ||
Titta Heikkala
|
r2740 | ** This file is part of the Qt Charts module. | ||
Jani Honkonen
|
r794 | ** | ||
Titta Heikkala
|
r2845 | ** $QT_BEGIN_LICENSE:COMM$ | ||
Jani Honkonen
|
r794 | ** | ||
Titta Heikkala
|
r2845 | ** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||||
** accordance with the commercial license agreement provided with the | ||||
** Software or, alternatively, in accordance with the terms contained in | ||||
** a written agreement between you and The Qt Company. For licensing terms | ||||
** and conditions see http://www.qt.io/terms-conditions. For further | ||||
** information use the contact form at http://www.qt.io/contact-us. | ||||
Jani Honkonen
|
r794 | ** | ||
Titta Heikkala
|
r2845 | ** $QT_END_LICENSE$ | ||
** | ||||
******************************************************************************/ | ||||
Jani Honkonen
|
r794 | |||
unknown
|
r1366 | // W A R N I N G | ||
// ------------- | ||||
// | ||||
Titta Heikkala
|
r2807 | // This file is not part of the Qt Chart API. It exists purely as an | ||
unknown
|
r1366 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
Michal Klocek
|
r969 | #ifndef CHARTTHEMEBLUEICY_P_H | ||
#define CHARTTHEMEBLUEICY_P_H | ||||
Jani Honkonen
|
r795 | |||
Titta Heikkala
|
r2714 | #include <private/charttheme_p.h> | ||
Tero Ahola
|
r757 | |||
Titta Heikkala
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
Tero Ahola
|
r757 | |||
class ChartThemeBlueIcy: public ChartTheme | ||||
{ | ||||
public: | ||||
ChartThemeBlueIcy() : ChartTheme(QChart::ChartThemeBlueIcy) | ||||
{ | ||||
// Series colors | ||||
m_seriesColors << QRgb(0x3daeda); | ||||
m_seriesColors << QRgb(0x2685bf); | ||||
m_seriesColors << QRgb(0x0c2673); | ||||
m_seriesColors << QRgb(0x5f3dba); | ||||
m_seriesColors << QRgb(0x2fa3b4); | ||||
Michal Klocek
|
r2273 | m_seriesGradients = ChartThemeManager::generateSeriesGradients(m_seriesColors); | ||
Tero Ahola
|
r757 | |||
// Background | ||||
QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); | ||||
backgroundGradient.setColorAt(0.0, QRgb(0xffffff)); | ||||
backgroundGradient.setColorAt(1.0, QRgb(0xffffff)); | ||||
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); | ||||
m_chartBackgroundGradient = backgroundGradient; | ||||
Tero Ahola
|
r1001 | m_backgroundDropShadowEnabled = true; | ||
Tero Ahola
|
r757 | |||
// Axes and other | ||||
Tero Ahola
|
r1528 | m_labelBrush = QBrush(QRgb(0x404044)); | ||
Tero Ahola
|
r757 | m_axisLinePen = QPen(QRgb(0xd6d6d6)); | ||
m_axisLinePen.setWidth(2); | ||||
m_gridLinePen = QPen(QRgb(0xe2e2e2)); | ||||
m_gridLinePen.setWidth(1); | ||||
Titta Heikkala
|
r2795 | m_minorGridLinePen = QPen(QRgb(0xe2e2e2)); | ||
m_minorGridLinePen.setWidth(1); | ||||
m_minorGridLinePen.setStyle(Qt::DashLine); | ||||
Tero Ahola
|
r757 | m_backgroundShades = BackgroundShadesNone; | ||
Mika Salmela
|
r2581 | m_outlinePen = QPen(QRgb(0x474747)); | ||
Mika Salmela
|
r2548 | m_outlinePen.setWidthF(2.0); | ||
Tero Ahola
|
r757 | } | ||
}; | ||||
Titta Heikkala
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
Jani Honkonen
|
r795 | |||
#endif | ||||