feat: theme-adaptive fullscreen background + wire updateMermaidTheme to applyTheme
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user