From a677e627a854ec2087cfea56f9149188a4dec817 Mon Sep 17 00:00:00 2001 From: fen Date: Wed, 9 Sep 2026 20:55:13 -0500 Subject: [PATCH] Fix #114: use presetColors(t.id) for theme card swatches t.colors was removed by #113; rendering threw on first iteration and the theme grid rendered empty. Use the colors returned by presetColors(t.id) instead. Verified in headless chromium: 5 theme-card elements render on /settings. --- internal/web/templates/settings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/templates/settings.html b/internal/web/templates/settings.html index 91e5585..b4a8629 100644 --- a/internal/web/templates/settings.html +++ b/internal/web/templates/settings.html @@ -44,7 +44,7 @@ btn.className = 'theme-card'; btn.setAttribute('aria-pressed', current === t.id ? 'true' : 'false'); btn.innerHTML = '' + t.name + '' + - '' + t.colors.map(function (c) { + '' + colors.map(function (c) { return ''; }).join('') + ''; btn.addEventListener('click', function () { -- 2.54.0