diff --git a/Widgets/NColorPickerDialog.qml b/Widgets/NColorPickerDialog.qml index 315b0d55d..d731eb4d9 100644 --- a/Widgets/NColorPickerDialog.qml +++ b/Widgets/NColorPickerDialog.qml @@ -29,11 +29,17 @@ Popup { if (selectedColor.hsvHue >= 0) { stableHue = selectedColor.hsvHue; } + if (liveMode && visible) { + colorSelected(selectedColor); + } } readonly property real displayHue: selectedColor.hsvHue < 0 ? stableHue : selectedColor.hsvHue signal colorSelected(color color) + // When true: hides Cancel/Apply, emits colorSelected on every color change + property bool liveMode: false + width: 580 padding: Style.marginXL @@ -734,6 +740,7 @@ Popup { } RowLayout { + visible: !root.liveMode Layout.fillWidth: true Layout.topMargin: 1 Layout.bottomMargin: 1