From 40b299f94b71fb54e563187d52f466b0024ae21b Mon Sep 17 00:00:00 2001 From: Lemmy Date: Tue, 24 Feb 2026 07:59:12 -0500 Subject: [PATCH] ncolorpickerdialog: live mode --- Widgets/NColorPickerDialog.qml | 7 +++++++ 1 file changed, 7 insertions(+) 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