From 27b1cfd105acd0fdb39ad47c4b706f7343edd861 Mon Sep 17 00:00:00 2001 From: Blake-Madden <66873089+Blake-Madden@users.noreply.github.com> Date: Sun, 7 Jul 2024 10:02:08 -0400 Subject: [PATCH] Contrast outer pie labels if necessary against dark background --- src/graphs/piechart.cpp | 86 +++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 41 deletions(-) diff --git a/src/graphs/piechart.cpp b/src/graphs/piechart.cpp index a996e640..f02de30c 100644 --- a/src/graphs/piechart.cpp +++ b/src/graphs/piechart.cpp @@ -159,40 +159,35 @@ namespace Wisteria::GraphItems const auto angle = m_startAngle + ((m_endAngle - m_startAngle) / 2); const auto arcMiddle = GetMiddleOfArc(1.0, pieArea); auto pieLabel = std::make_unique