mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 08:59:55 +00:00
UX Fixups
.. chart bar scroll left and right when too many charts .. set background in ride plot .. chart menu says 'More...' instead of down tick
This commit is contained in:
@@ -550,6 +550,8 @@ AllPlotWindow::AllPlotWindow(Context *context) :
|
||||
void
|
||||
AllPlotWindow::configChanged()
|
||||
{
|
||||
setProperty("color", GColor(CRIDEPLOTBACKGROUND));
|
||||
|
||||
// we're going to replot, but only if we're active
|
||||
// and all the other guff
|
||||
RideItem *ride = myRideItem;
|
||||
@@ -558,9 +560,6 @@ AllPlotWindow::configChanged()
|
||||
return;
|
||||
}
|
||||
|
||||
// ignore if null, or manual / empty
|
||||
if (!ride || !ride->ride() || !ride->ride()->dataPoints().count()) return;
|
||||
|
||||
// Container widgets should not paint
|
||||
// since they tend to use naff defaults and
|
||||
// 'complicate' or 'make busy' the general
|
||||
@@ -571,6 +570,9 @@ AllPlotWindow::configChanged()
|
||||
stackFrame->widget()->setPalette(palette);
|
||||
fullPlot->setCanvasBackground(GColor(CRIDEPLOTBACKGROUND));
|
||||
|
||||
// ignore if null, or manual / empty
|
||||
if (!ride || !ride->ride() || !ride->ride()->dataPoints().count()) return;
|
||||
|
||||
// reset the charts etc
|
||||
if (isCompare()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user