feat: theme-adaptive fullscreen background + wire updateMermaidTheme to applyTheme
CI / lint (push) Successful in 15s
CI / security (push) Successful in 8s
CI / test (push) Successful in 24s
CI / build (push) Successful in 2s

This commit is contained in:
2026-06-05 09:24:19 -04:00
parent 2cf9915208
commit 51a5162e66
3 changed files with 45 additions and 11 deletions
+5
View File
@@ -163,6 +163,11 @@ export function applyTheme(theme) {
darkSheet.disabled = theme !== "dark";
lightSheet.disabled = theme !== "light";
}
// Update Mermaid theme for newly rendered diagrams
import('./mermaid-viewer.js').then(function(m) {
m.updateMermaidTheme(theme === 'dark');
}).catch(function() {});
}
export function toggleTheme() {