move color to hap value

This commit is contained in:
Felix Roos 2024-03-23 00:20:00 +01:00
parent 5537652497
commit d036635915
4 changed files with 10 additions and 13 deletions

View file

@ -92,7 +92,7 @@ const miniLocationHighlights = EditorView.decorations.compute([miniLocations, vi
if (haps.has(id)) {
const hap = haps.get(id);
const color = hap.context.color ?? 'var(--foreground)';
const color = hap.value?.color ?? 'var(--foreground)';
// Get explicit channels for color values
/*
const swatch = document.createElement('div');