1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

feat(color-picker): add openColor IPC handler to set color on open (#2017)

This commit is contained in:
Maddison Hellstrom
2026-03-17 09:42:59 -07:00
committed by GitHub
parent 679a59ad76
commit 0cf2c40377
2 changed files with 9 additions and 0 deletions

View File

@@ -147,6 +147,13 @@ DankModal {
return "COLOR_PICKER_MODAL_OPEN_SUCCESS";
}
function openColor(color: string): string {
root.selectedColor = Qt.color(color);
root.currentColor = Qt.color(color);
root.updateFromColor(Qt.color(color));
return open();
}
function close(): string {
root.hide();
return "COLOR_PICKER_MODAL_CLOSE_SUCCESS";