From 35785aa7947b9f515a4e89953e01d56ed4da1757 Mon Sep 17 00:00:00 2001 From: Matej Bagar Date: Fri, 17 Jul 2026 13:20:59 +0200 Subject: [PATCH] Fix unresponsive color buttons in photo sketching --- app/qml/form/components/MMFormPhotoSketchingPageDialog.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/qml/form/components/MMFormPhotoSketchingPageDialog.qml b/app/qml/form/components/MMFormPhotoSketchingPageDialog.qml index 74d08133e..e9678639d 100644 --- a/app/qml/form/components/MMFormPhotoSketchingPageDialog.qml +++ b/app/qml/form/components/MMFormPhotoSketchingPageDialog.qml @@ -197,8 +197,9 @@ Dialog { MMComponents.MMListSpacer { implicitHeight: __style.margin20 } - MMComponents.MMColorPicker{ + MMComponents.MMColorPicker { colors: [__style.photoSketchingWhiteColor, __style.photoSketchingBlackColor, __style.photoSketchingBlueColor, __style.photoSketchingGreenColor, __style.photoSketchingYellowColor, __style.photoSketchingOrangeColor, __style.photoSketchingPinkColor] + activeColor: root.controller.activeColor Layout.alignment: Qt.AlignHCenter Layout.maximumWidth: parent.width - ( 2 * __style.pageMargins + __style.safeAreaLeft + __style.safeAreaRight ) @@ -206,9 +207,7 @@ Dialog { Layout.leftMargin: __style.pageMargins + __style.safeAreaLeft Layout.rightMargin: __style.pageMargins + __style.safeAreaRight - onActiveColorChanged:{ - root.controller.activeColor = activeColor - } + onActiveColorChangeRequested: newColor => root.controller.activeColor = newColor } }