diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-19 12:59:56 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | 2e2019dea7087937d7bcc0e9bd2598d61a758b65 (patch) | |
tree | 032ba3da052a6a8afb1c789ee1b3bf62a3a39c6a /stats/statsview.cpp | |
parent | ba259fb1d66c242d9503ba9695ce55826370267e (diff) | |
download | subsurface-2e2019dea7087937d7bcc0e9bd2598d61a758b65.tar.gz |
statistics: move colors to statscolors.h
Most colors were already collected there, but a few were dispersed
throughout the source files.
For future themeability, move the remaining colors to this common
place.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/statsview.cpp')
-rw-r--r-- | stats/statsview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stats/statsview.cpp b/stats/statsview.cpp index 714f3ee1a..feb5a276e 100644 --- a/stats/statsview.cpp +++ b/stats/statsview.cpp @@ -956,10 +956,10 @@ void StatsView::plotHistogramCountChart(const std::vector<dive *> &dives, if (categoryVariable->type() == StatsVariable::Type::Numeric) { double mean = categoryVariable->mean(dives); if (!std::isnan(mean)) - meanMarker = createChartItem<HistogramMarker>(mean, isHorizontal, Qt::green, xAxis, yAxis); + meanMarker = createChartItem<HistogramMarker>(mean, isHorizontal, meanMarkerColor, xAxis, yAxis); double median = categoryVariable->quartiles(dives).q2; if (!std::isnan(median)) - medianMarker = createChartItem<HistogramMarker>(median, isHorizontal, Qt::red, xAxis, yAxis); + medianMarker = createChartItem<HistogramMarker>(median, isHorizontal, medianMarkerColor, xAxis, yAxis); } } |