##// END OF EJS Templates
Adds owvership to domain
Adds owvership to domain

File last commit:

r717:a566cfd317a8
r787:e08865d3185f
Show More
chartthemedark_p.h
36 lines | 1.1 KiB | text/x-c | CLexer
/ src / themes / chartthemedark_p.h
Tero Ahola
Three more themes
r651 #include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeDark : public ChartTheme
{
public:
ChartThemeDark() : ChartTheme(QChart::ChartThemeDark)
{
// Series colors
m_seriesColors << QRgb(0x38ad6b);
m_seriesColors << QRgb(0x3c84a7);
m_seriesColors << QRgb(0xeb8817);
m_seriesColors << QRgb(0x7b7f8c);
m_seriesColors << QRgb(0xbf593e);
generateSeriesGradients();
// Background
Tero Ahola
Fixed background gradients direction
r667 QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0);
Tero Ahola
Three more themes
r651 backgroundGradient.setColorAt(0.0, QRgb(0x2e303a));
backgroundGradient.setColorAt(1.0, QRgb(0x121218));
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
m_chartBackgroundGradient = backgroundGradient;
// Axes and other
m_titleBrush = QBrush(QRgb(0xffffff));
m_axisLinePen = QPen(QRgb(0x86878c));
m_axisLinePen.setWidth(2);
m_axisLabelBrush = QBrush(QRgb(0xffffff));
m_gridLinePen = QPen(QRgb(0x86878c));
m_gridLinePen.setWidth(1);
Tero Ahola
Default theme background, removed extra themes
r692 m_backgroundShades = BackgroundShadesNone;
Tero Ahola
Three more themes
r651 }
};
QTCOMMERCIALCHART_END_NAMESPACE