QTradingView
1.0.0
A high-performance charting library built with C++ and Qt.
Loading...
Searching...
No Matches
ChartTheme.h
1
/*
2
* Copyright (c) 2025 Dhruvan Gnanadhandayuthapani
3
*
4
* Permission is hereby granted, free of charge, to any person obtaining a copy
5
* of this software and associated documentation files (the "Software"), to deal
6
* in the Software without restriction, including without limitation the rights
7
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
* copies of the Software, and to permit persons to whom the Software is
9
* furnished to do so, subject to the following conditions:
10
*
11
* The above copyright notice and this permission notice shall be included in
12
* all copies or substantial portions of the Software.
13
*
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
* SOFTWARE.
21
*/
22
23
#ifndef QTRADINGVIEW_CHARTTHEME_H
24
#define QTRADINGVIEW_CHARTTHEME_H
25
26
#include <QColor>
27
#include <QFont>
28
#include "QTradingView/qtradingview_global.h"
29
30
namespace
QTradingView {
31
37
class
QTRADINGVIEW_EXPORT
ChartTheme
38
{
39
public
:
43
ChartTheme
();
44
45
// Background colors
46
QColor backgroundColor;
47
QColor chartBackgroundColor;
48
49
// Grid colors
50
QColor gridColor;
51
QColor borderColor;
52
QColor paneBorderColor;
// Border color for pane separation
53
54
// Axis colors
55
QColor axisTextColor;
56
QColor axisBackgroundColor;
57
58
// Crosshair colors
59
QColor crosshairColor;
60
61
// Text colors
62
QColor textColor;
63
QFont textFont;
64
65
// Default series color
66
QColor defaultSeriesColor;
67
68
// Static factory methods for predefined themes
73
static
ChartTheme
tradingViewDark();
78
static
ChartTheme
tradingViewLight();
83
static
ChartTheme
dark();
88
static
ChartTheme
light();
89
};
90
91
}
// namespace QTradingView
92
93
#endif
// QTRADINGVIEW_CHARTTHEME_H
QTradingView::ChartTheme
Defines the color and font theme for chart rendering.
Definition
ChartTheme.h:38
include
QTradingView
style
ChartTheme.h
Generated by
1.9.8