Plot Background and CP chart

If you change the plot background to black then the
CP curve is always in black too so becomes invisible.

Added a customisable color for the CP curve and fixed
up a few redraw issues in CP and Ride plot when you
change the colors.

Still need to fixup the other charts, but will do over
time. I suspect almost noone changes the plot colors from
the default values.
This commit is contained in:
Mark Liversedge
2013-12-07 19:42:51 +00:00
parent a26a035ced
commit d7b1829bfa
7 changed files with 34 additions and 6 deletions

View File

@@ -488,8 +488,7 @@ AllPlotWindow::configChanged()
QPalette palette;
palette.setBrush(QPalette::Background, QBrush(GColor(CRIDEPLOTBACKGROUND)));
allPlotFrame->setPalette(palette);
stackFrame->setPalette(palette);
//stackWidget->setPalette(palette);
stackFrame->widget()->setPalette(palette);
fullPlot->setCanvasBackground(GColor(CRIDEPLOTBACKGROUND));
// ok replot with the new config!
@@ -1755,7 +1754,7 @@ AllPlotWindow::setupStackPlots()
// set new widgets
QWidget *stackWidget = new QWidget;
stackWidget->setPalette(palette);
stackWidget->setAutoFillBackground(false);
stackWidget->setAutoFillBackground(true);
stackWidget->setLayout(newLayout);
stackFrame->setWidget(stackWidget);