##// 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
chartthemegrayscale_p.h
37 lines | 1.2 KiB | text/x-c | CLexer
/ src / themes / chartthemegrayscale_p.h
Michal Klocek
Refactor themes...
r143 #include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeGrayscale: public ChartTheme
{
public:
Michal Klocek
Adds missing ids to theme classes
r153 ChartThemeGrayscale():ChartTheme(QChart::ChartThemeGrayscale)
Michal Klocek
Refactor themes...
r143 {
Tero Ahola
Added axis related modifiers to theme
r548 // Series colors
m_seriesColors << QRgb(0x869299);
m_seriesColors << QRgb(0xa5bdcc);
m_seriesColors << QRgb(0xe8fffc);
m_seriesColors << QRgb(0xccc2c2);
Tero Ahola
Theme gradients now generated from a single base color
r507 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(0xffffff));
backgroundGradient.setColorAt(1.0, QRgb(0xe0e3e5));
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
New theme with light colors, chartview background
r584 m_backgroundShades = BackgroundShadesNone;
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