@@ -173,13 +173,13 void ChartTheme::decorate(ScatterChartItem* item, QScatterSeries* series, int in | |||||
173 | QBrush brush; |
|
173 | QBrush brush; | |
174 |
|
174 | |||
175 | if (pen == series->pen()) { |
|
175 | if (pen == series->pen()) { | |
176 |
pen.setColor(colorAt(m_seriesGradients.at( |
|
176 | pen.setColor(colorAt(m_seriesGradients.at(index % m_seriesGradients.size()), 1.0)); | |
177 | pen.setWidthF(2); |
|
177 | pen.setWidthF(2); | |
178 | series->setPen(pen); |
|
178 | series->setPen(pen); | |
179 | } |
|
179 | } | |
180 |
|
180 | |||
181 | if (brush == series->brush()) { |
|
181 | if (brush == series->brush()) { | |
182 |
QBrush brush(m_seriesColors.at( |
|
182 | QBrush brush(m_seriesColors.at(index % m_seriesColors.size())); | |
183 | series->setBrush(brush); |
|
183 | series->setBrush(brush); | |
184 | } |
|
184 | } | |
185 | } |
|
185 | } |
@@ -56,7 +56,7 public: | |||||
56 | // TODO: COLOR_WINDOWTEXT for text color? |
|
56 | // TODO: COLOR_WINDOWTEXT for text color? | |
57 | // TODO: COLOR_INFOTEXT for tooltip text color? |
|
57 | // TODO: COLOR_INFOTEXT for tooltip text color? | |
58 | // TODO: COLOR_INFOBK for tooltip background color? |
|
58 | // TODO: COLOR_INFOBK for tooltip background color? | |
59 | #elif Q_OS_LINUX |
|
59 | #elif defined(Q_OS_LINUX) | |
60 | // TODO: replace this dummy theme with linux specific theme |
|
60 | // TODO: replace this dummy theme with linux specific theme | |
61 | m_seriesColors << QRgb(0xff707070); |
|
61 | m_seriesColors << QRgb(0xff707070); | |
62 | m_seriesColors << QRgb(0xffA0A0A0); |
|
62 | m_seriesColors << QRgb(0xffA0A0A0); |
General Comments 0
You need to be logged in to leave comments.
Login now