mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
User Configurable Colors
A new config pane for defining color preferences for chart curves, shading, background and grid lines et al. Default values echo the current hard-coded values.
This commit is contained in:
committed by
Sean Rhea
parent
778d651f00
commit
38df7c28bd
@@ -24,6 +24,7 @@
|
||||
#include "AllPlot.h"
|
||||
#include "BestIntervalDialog.h"
|
||||
#include "ChooseCyclistDialog.h"
|
||||
#include "Colors.h"
|
||||
#include "Computrainer.h"
|
||||
#include "ConfigDialog.h"
|
||||
#include "CriticalPowerWindow.h"
|
||||
@@ -103,7 +104,10 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
settings = GetApplicationSettings();
|
||||
|
||||
|
||||
GCColor *GCColorSet = new GCColor(this); // get/keep colorset
|
||||
GCColorSet->colorSet(); // shut up the compiler
|
||||
|
||||
QVariant unit = settings->value(GC_UNIT);
|
||||
useMetricUnits = (unit.toString() == "Metric");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user