##// END OF EJS Templates
Fixed a bug in vanilla theme
Fixed a bug in vanilla theme

File last commit:

r507:cd18b203dd88
r526:8593b87d6899
Show More
chartthemedefault_p.h
24 lines | 709 B | text/x-c | CLexer
/ src / themes / chartthemedefault_p.h
#include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeDefault: public ChartTheme
{
public:
ChartThemeDefault():ChartTheme(QChart::ChartThemeDefault)
{
// TODO: replace this dummy theme with an actual theme
m_seriesColors << QRgb(0xff707070);
m_seriesColors << QRgb(0xffA0A0A0);
generateSeriesGradients();
QLinearGradient backgroundGradient;
backgroundGradient.setColorAt(0.0, QRgb(0xffffffff));
backgroundGradient.setColorAt(1.0, QRgb(0xffafafaf));
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
m_backgroundGradient = backgroundGradient;
}
};
QTCOMMERCIALCHART_END_NAMESPACE