feat: Modal zum manuellen Erstellen von Farbschemata

This commit is contained in:
Ferdinand
2026-04-02 14:23:26 +02:00
parent 7a17f2c511
commit 447473c6f5
5 changed files with 309 additions and 1 deletions

View File

@@ -1,7 +1,8 @@
import { initEingabe } from './eingabe.js';
import { initPicker } from './picker.js';
import { initHarmonien } from './harmonien.js';
import { addFavorit, addColorToSchema, addToHistory, renderSammlung, exportCollection, importCollection } from './collection.js';
import { addFavorit, addColorToSchema, addToHistory, renderSammlung, exportCollection, importCollection, saveSchema } from './collection.js';
import { initSchemaModal } from './schema-modal.js';
// state.color is read-only from outside — always use setColor() to update,
// so that the colorChanged event is dispatched to all listening modules.
@@ -37,3 +38,4 @@ document.getElementById('sammlung-export-btn').addEventListener('click', exportC
document.getElementById('sammlung-import-btn').addEventListener('click', importCollection);
renderSammlung();
initSchemaModal(saveSchema);