QTfrontend/ui/page/pagegamestats.cpp
changeset 14758 123aaa2bf4b5
parent 14631 de34abf040ed
child 14858 5443e5e0faa3
--- a/QTfrontend/ui/page/pagegamestats.cpp	Mon Apr 01 22:07:42 2019 +0200
+++ b/QTfrontend/ui/page/pagegamestats.cpp	Mon Apr 01 23:15:18 2019 +0200
@@ -222,11 +222,25 @@
                 minValue = qMin(minValue, hps[t]);
             }
 
-            QPen pen(c);
+            // Draw clan health/score graph lines
+            QColor col = QColor(c);
+
+            // Special pen for very dark clan colors
+            if (!(col.red() >= cInvertTextColorAt || col.green() >= cInvertTextColorAt || col.blue() >= cInvertTextColorAt))
+            {
+                QPen pen_marker(QColor(255, 255, 255));
+                pen_marker.setWidth(3);
+                pen_marker.setStyle(Qt::DotLine);
+                pen_marker.setCosmetic(true);
+                m_scene->addPath(path, pen_marker);
+            }
+
+            // Regular pen
+            QPen pen(col);
             pen.setWidth(2);
             pen.setCosmetic(true);
+            m_scene->addPath(path, pen);
 
-            m_scene->addPath(path, pen);
             ++i;
         }