From 39a35fd54a8f771a51946cd18fc97dacdf803899 Mon Sep 17 00:00:00 2001 From: Rizumu Ayaka Date: Fri, 16 Jan 2026 17:03:58 +0800 Subject: [PATCH] refactor: color handling in node customization and selection tools --- .../selectionToolbox/ColorPickerButton.vue | 87 ++---- .../rightSidePanel/settings/SetNodeColor.vue | 106 ++----- src/composables/graph/useGroupMenuOptions.ts | 7 +- .../graph/useNodeColorOptions.test.ts | 269 ++++++++++++++++++ src/composables/graph/useNodeColorOptions.ts | 240 ++++++++++++++++ src/composables/graph/useNodeCustomization.ts | 91 ++---- src/composables/graph/useNodeMenuOptions.ts | 7 +- 7 files changed, 595 insertions(+), 212 deletions(-) create mode 100644 src/composables/graph/useNodeColorOptions.test.ts create mode 100644 src/composables/graph/useNodeColorOptions.ts diff --git a/src/components/graph/selectionToolbox/ColorPickerButton.vue b/src/components/graph/selectionToolbox/ColorPickerButton.vue index 17f350dbd..7ee0897f1 100644 --- a/src/components/graph/selectionToolbox/ColorPickerButton.vue +++ b/src/components/graph/selectionToolbox/ColorPickerButton.vue @@ -28,7 +28,11 @@ >