From fe5736905eccea39b07824d0eed96ec20c5d10bc Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Tue, 3 Feb 2026 09:51:09 +0300 Subject: [PATCH] feat: redesign web UI with theme toggle and improved styling --- www/config.html | 8 +- www/index.html | 769 +++++++++++++++++++++++++++++++++++++++++++++--- www/main.js | 456 ++++++++++++++++++++++++---- 3 files changed, 1129 insertions(+), 104 deletions(-) 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 + + + - +
+
+ +
+
-
- - modes - - - - +
+
+ +
+ Modes: + + + + +
+
+ +
+ + + + + + + + + + +
+ + StatusActions
+
+ +
- - - - - - - - - - -
onlinecommands
-