feat: add color-blindness frontend settings component and registry entry

This commit is contained in:
SnapOtter
2026-05-08 15:20:12 +08:00
parent eedc2443d6
commit 5aeafdfe60
2 changed files with 170 additions and 0 deletions
+6
View File
@@ -308,6 +308,11 @@ const TransparencyFixerSettings = lazy(() =>
default: m.TransparencyFixerSettings,
})),
);
const ColorBlindnessSettings = lazy(() =>
import("@/components/tools/color-blindness-settings").then((m) => ({
default: m.ColorBlindnessSettings,
})),
);
// ── Color tool wrapper ─────────────────────────────────────────────
// Color tools share a single component but differ by toolId.
@@ -426,6 +431,7 @@ export const toolRegistry = new Map<string, ToolRegistryEntry>([
// Adjustments extra
["replace-color", { displayMode: "before-after", Settings: ReplaceColorSettings }],
["color-blindness", { displayMode: "before-after", Settings: ColorBlindnessSettings }],
// AI Tools
["remove-background", { displayMode: "before-after", Settings: RemoveBgSettings }],