From a1c148bf703d00070bc648f2c3a7a1971318ba53 Mon Sep 17 00:00:00 2001 From: zach Date: Sat, 20 Jun 2026 13:37:00 +0200 Subject: [PATCH] current color rectangle centered in arc --- Components/ColorArcPicker.qml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Components/ColorArcPicker.qml b/Components/ColorArcPicker.qml index 4ecf3c8..27202e7 100644 --- a/Components/ColorArcPicker.qml +++ b/Components/ColorArcPicker.qml @@ -149,6 +149,21 @@ Item { } } + CustomRect { + anchors.centerIn: parent + color: root.drawing?.penColor + implicitHeight: implicitWidth + implicitWidth: canvas.height - root.handleSize - Appearance.padding.extraLarge * 2 + radius: Appearance.rounding.full + + Behavior on color { + enabled: false + + CAnim { + } + } + } + Item { id: handle @@ -182,7 +197,7 @@ Item { Rectangle { anchors.centerIn: parent - color: root.drawing ? root.drawing.penColor : Qt.hsla(root.currentHue, 1.0, 0.5, 1.0) + color: Qt.hsla(root.currentHue, 1.0, 0.5, 1.0) height: width radius: width / 2 width: parent.width - 12