##// END OF EJS Templates
Lightened up chart backgrounds in themes
Lightened up chart backgrounds in themes

File last commit:

r507:cd18b203dd88
r525:3ee88ebc786e
Show More
chartthemedefault_p.h
24 lines | 709 B | text/x-c | CLexer
/ src / themes / chartthemedefault_p.h
Jani Honkonen
Adding list of series gradients to theme.
r494 #include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeDefault: public ChartTheme
{
public:
ChartThemeDefault():ChartTheme(QChart::ChartThemeDefault)
{
Tero Ahola
Theme gradients now generated from a single base color
r507 // TODO: replace this dummy theme with an actual theme
Jani Honkonen
Adding list of series gradients to theme.
r494 m_seriesColors << QRgb(0xff707070);
Tero Ahola
Theme gradients now generated from a single base color
r507 m_seriesColors << QRgb(0xffA0A0A0);
Jani Honkonen
Adding list of series gradients to theme.
r494
Tero Ahola
Theme gradients now generated from a single base color
r507 generateSeriesGradients();
Jani Honkonen
Adding list of series gradients to theme.
r494
QLinearGradient backgroundGradient;
backgroundGradient.setColorAt(0.0, QRgb(0xffffffff));
backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
m_backgroundGradient = backgroundGradient;
}
};
QTCOMMERCIALCHART_END_NAMESPACE