##// END OF EJS Templates
Fixed bug in setting chart theme...
Fixed bug in setting chart theme The bug was that if you first add a series, then change theme and then restore the original theme, the color of the series was changed even though it should have been restored to match the original color.

File last commit:

r153:04be7b528347
r312:0677c9dd6d92
Show More
chartthemevanilla_p.h
21 lines | 601 B | text/x-c | CLexer
/ src / themes / chartthemevanilla_p.h
#include "charttheme_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartThemeVanilla: public ChartTheme
{
public:
ChartThemeVanilla():ChartTheme(QChart::ChartThemeVanilla)
{
m_seriesColor.append(QColor(217, 197, 116));
m_seriesColor.append(QColor(214, 168, 150));
m_seriesColor.append(QColor(160, 160, 113));
m_seriesColor.append(QColor(210, 210, 52));
m_seriesColor.append(QColor(136, 114, 58));
m_gradientStartColor = QColor(QRgb(0xff9d844d));
m_gradientEndColor = QColor(QRgb(0xffafafaf));
}
};
QTCOMMERCIALCHART_END_NAMESPACE