##// END OF EJS Templates
Fixed scatter marker colors
Tero Ahola -
r514:9113e8ad2b3e
parent child
Show More
@@ -212,15 +212,12 void ChartTheme::decorate(ScatterChartItem* item, QScatterSeries* series, int co
212 212 Q_ASSERT(item);
213 213 Q_ASSERT(series);
214 214
215 QColor color = m_seriesColors.at(count % m_seriesColors.size());
216 // TODO: define alpha in the theme? or in the series?
217 //color.setAlpha(120);
218
219 QBrush brush(color, Qt::SolidPattern);
220 item->setBrush(Qt::blue);
215 // Use a base color for brush
216 item->setBrush(m_seriesColors.at(count % m_seriesColors.size()));
221 217
222 QPen pen(brush, 3);
223 pen.setColor(color);
218 // Take pen near from gradient start, effectively using a lighter color for outline
219 QPen pen(QBrush(Qt::SolidPattern), 3);
220 pen.setColor(colorAt(m_seriesGradients.at(count % m_seriesGradients.size()), 0.1));
224 221 item->setPen(pen);
225 222 }
226 223
General Comments 0
You need to be logged in to leave comments. Login now