fix(widget-editor): show color picker above editor (#4021)

port 2.0
This commit is contained in:
Huỳnh Thiện Lộc authored and GitHub committed 2026-10-30 09:08:38 -04:00
1 parent 6f68c94bc3
commit fd137f0c81
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -21,7 +21,8 @@ DModal {
keepContentLoaded: true
allowStacking: true
function show() {
function show(overlayLayer = false) {
useOverlayLayer = overlayLayer;
open();
contentLoader?.item?.setColor(selectedColor);
}
@@ -54,6 +55,7 @@ DModal {
if (contentLoader?.item?.pickingFromScreen)
return;
onColorSelectedCallback = null;
useOverlayLayer = false;
}
onColorSelected: color => {
if (typeof onColorSelectedCallback === "function")
@@ -111,7 +113,7 @@ DModal {
root.hideInstant();
startScreenPick();
}
onShowRequested: root.show()
onShowRequested: root.show(root.useOverlayLayer)
}
}
}
@@ -101,7 +101,7 @@ SettingsRow {
root.customColorSelected(selectedColor);
root.colorModeSelected("custom");
};
PopoutService.colorPickerModal.show();
PopoutService.colorPickerModal.show(true);
}
}
}