Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix new 3-point ellipse creation dots to be HDR-color managed.
Wolthera van Hövell tot Westerflier3f2dcd8dc2e2
diff --git a/plugins/tools/basictools/kis_tool_ellipse.cc b/plugins/tools/basictools/kis_tool_ellipse.ccindex 2608084eb6..fe7cc85d9a 100644--- a/plugins/tools/basictools/kis_tool_ellipse.cc+++ b/plugins/tools/basictools/kis_tool_ellipse.cc@@ -36,6 +36,8 @@#include <brushengine/kis_paintop_preset.h>#include <ksharedconfig.h>#include <kis_rectangle_constraint_widget.h>+#include <KisHandlePainterHelper.h>+#include <KoColorDisplayRendererInterface.h>#include <cmath>@@ -501,8 +503,9 @@ void KisToolEllipse::paintThreePointHandles(QPainter &gc){gc.save();gc.setRenderHint(QPainter::Antialiasing, true);- gc.setPen(QPen(Qt::black, 1.0));- gc.setBrush(QBrush(Qt::white));+ const KisHandlePalette palette = canvas()->displayRendererInterface()->handlePaletteForDisplayColorSpace();+ gc.setPen(QPen(palette.black, 1.0));+ gc.setBrush(QBrush(palette.white));const qreal radius = qMax<qreal>(3.0, handleRadius() * 0.75);for (const QPointF &point : m_threePointHandles) {