Browse Source

Light themes should have darker plot colors and dark themes vice-versa.

QGC4.4
Bryant 12 years ago
parent
commit
467280bbd5
  1. 4
      src/ui/linechart/ChartPlot.cc

4
src/ui/linechart/ChartPlot.cc

@ -97,11 +97,11 @@ void ChartPlot::applyColorScheme(MainWindow::QGC_MAINWINDOW_STYLE style) @@ -97,11 +97,11 @@ void ChartPlot::applyColorScheme(MainWindow::QGC_MAINWINDOW_STYLE style)
for (int i = 0; i < numColors; ++i)
{
if (style == MainWindow::QGC_MAINWINDOW_STYLE_LIGHT) {
colors[i] = baseColors[i].lighter(150);
colors[i] = baseColors[i].darker(150);
}
else
{
colors[i] = baseColors[i].darker(150);
colors[i] = baseColors[i].lighter(150);
}
}
shuffleColors();

Loading…
Cancel
Save