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

File last commit:

r525:3ee88ebc786e
r525:3ee88ebc786e
Show More
chartthemevanilla_p.h
26 lines | 770 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_seriesColors << QRgb(0xffd9c574);
m_seriesColors << QRgb(0xd6a896);
m_seriesColors << QRgb(0xa0a071);
m_seriesColors << QRgb(0xd2d234);
m_seriesColors << QRgb(0x88723a);
generateSeriesGradients();
QLinearGradient backgroundGradient;
backgroundGradient.setColorAt(0.0, QRgb(0xfffbf9f1));
backgroundGradient.setColorAt(1.0, QRgb(0xfff5f0dc));
backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
m_backgroundGradient = backgroundGradient;
}
};
QTCOMMERCIALCHART_END_NAMESPACE