mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user