##// END OF EJS Templates
Refcator scrol() to scrollLeft,Right,Up,Down
Refcator scrol() to scrollLeft,Right,Up,Down

File last commit:

r584:bcc474698f6b
r600:db004721a4d5
Show More
chartthemescientific_p.h
39 lines | 1.3 KiB | text/x-c | CLexer
/ src / themes / chartthemescientific_p.h
Michal Klocek
Refactor themes...
r143 #include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeScientific: public ChartTheme
{
public:
Michal Klocek
Adds missing ids to theme classes
r153 ChartThemeScientific():ChartTheme(QChart::ChartThemeScientific)
Michal Klocek
Refactor themes...
r143 {
Tero Ahola
Added axis related modifiers to theme
r548 // Series
m_seriesColors << QRgb(0xFFAD00);
m_seriesColors << QRgb(0x596A75);
m_seriesColors << QRgb(0x202020);
m_seriesColors << QRgb(0x474747);
Tero Ahola
Modified scientific theme
r523 generateSeriesGradients();
Jani Honkonen
Adding list of series gradients to theme.
r494
Tero Ahola
Added axis related modifiers to theme
r548 // Background
Jani Honkonen
Adding list of series gradients to theme.
r494 QLinearGradient backgroundGradient;
Tero Ahola
Added axis related modifiers to theme
r548 backgroundGradient.setColorAt(0.0, QRgb(0xfffefc));
backgroundGradient.setColorAt(1.0, QRgb(0xfffefc));
Jani Honkonen
Adding list of series gradients to theme.
r494 backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
Tero Ahola
New theme with light colors, chartview background
r584 m_chartBackgroundGradient = backgroundGradient;
Tero Ahola
Added axis related modifiers to theme
r548
// Axes and other
m_masterFont = QFont();
m_axisLinePen = QPen(QRgb(0x0f0f0f));
m_axisLinePen.setWidth(2);
m_axisLabelBrush = QBrush(QRgb(0x3f3f3f));
m_axisLabelPen = Qt::NoPen; // NoPen for performance reasons
m_backgroundShadesPen = Qt::NoPen;
Tero Ahola
Now using either vertical or horizontal grid shades
r561 // m_backgroundShadesBrush = QBrush(QColor(0x0f, 0x0f, 0x0f, 0x80));
m_backgroundShadesBrush = QBrush(QColor(0xff, 0xad, 0x00, 0x50));
m_backgroundShades = BackgroundShadesHorizontal;
Tero Ahola
Added axis related modifiers to theme
r548 m_gridLinePen = QPen(QRgb(0x0f0f0f));
m_gridLinePen.setWidth(2);
Michal Klocek
Refactor themes...
r143 }
};
QTCOMMERCIALCHART_END_NAMESPACE