From 7ee89bba298d15cab1ef3fc63c68c4df0cd075cf Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 07:24:09 +0000 Subject: [PATCH] Matrix: tint new markers on creation during matrix mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Timeline scrub clears and recreates markers — now addNodeMarker() applies matrix tinting inline if matrixMode is active. --- public/index.html | 2 +- public/live.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 0eb8786..7aeff39 100644 --- a/public/index.html +++ b/public/index.html @@ -90,7 +90,7 @@ - + diff --git a/public/live.js b/public/live.js index 14f5b25..4eddd79 100644 --- a/public/live.js +++ b/public/live.js @@ -1312,6 +1312,15 @@ marker._baseColor = color; marker._baseSize = size; nodeMarkers[n.public_key] = marker; + + // Apply matrix tint if active + if (matrixMode) { + marker._matrixPrevColor = color; + marker._baseColor = '#005f15'; + marker.setStyle({ fillColor: '#005f15', color: '#005f15', fillOpacity: 0.4, opacity: 0.4 }); + glow.setStyle({ fillColor: '#005f15', fillOpacity: 0.1 }); + } + return marker; }