diff --git a/www/config.html b/www/config.html
index 026b5beb..83c44c7b 100644
--- a/www/config.html
+++ b/www/config.html
@@ -116,8 +116,12 @@
ensureYamlLanguage();
- const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
- monaco.editor.setTheme(prefersDark ? 'vs-dark' : 'vs');
+ const getTheme = () => document.documentElement.getAttribute('data-theme') === 'light' ? 'vs' : 'vs-dark';
+ monaco.editor.setTheme(getTheme());
+
+ window.addEventListener('themeChanged', () => {
+ monaco.editor.setTheme(getTheme());
+ });
const editor = monaco.editor.create(container, {
language: 'yaml',
diff --git a/www/index.html b/www/index.html
index 69126e6f..ab70563a 100644
--- a/www/index.html
+++ b/www/index.html
@@ -4,65 +4,729 @@
go2rtc
+
+
+
-
+
-