From 615c40a2457b284f9da4a079037c4dcebc76ada9 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 12:14:49 +0200 Subject: [PATCH] Add toggle for debug panel (collapse/expand) --- index.html | 74 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index a909506..f24cbfb 100644 --- a/index.html +++ b/index.html @@ -35,6 +35,26 @@ border-bottom: 1px solid rgba(230, 223, 209, 0.3); padding-bottom: 4px; margin-bottom: 6px; + cursor: pointer; + user-select: none; + display: flex; + justify-content: space-between; + align-items: center; + } + .debug-title-toggle { + font-size: 0.8em; + color: var(--icon); + margin-left: 8px; + } + .debug-content { + overflow: hidden; + transition: max-height 0.3s ease; + } + .debug-content.collapsed { + max-height: 0; + padding-top: 0; + padding-bottom: 0; + margin: 0; } .debug-section { font-size: 1em; @@ -268,26 +288,28 @@
-
DEBUG - Palette: Ash
-
Time: --
-
Day%: --
-
Weather: --
-
Theme: --
-
Speed: --
-
Transition: --
-
Effective theme
-
skyColor
--
-
cloudColor
--
-
lightColor
--
-
bgColor
--
-
Vanta colors
-
skyColor
--
-
cloudColor
--
-
lightColor
--
-
bgColor
--
-
Theme table
-
-
+
DEBUG - Palette: Ash▼
+
+
Time: --
+
Day%: --
+
Weather: --
+
Theme: --
+
Speed: --
+
Transition: --
+
Effective theme
+
skyColor
--
+
cloudColor
--
+
lightColor
--
+
bgColor
--
+
Vanta colors
+
skyColor
--
+
cloudColor
--
+
lightColor
--
+
bgColor
--
+
Theme table
+
+
+
@@ -1117,6 +1139,18 @@ var weatherThemes = { return (now.getTime() - startOfDay.getTime()) / 86400000; } + function toggleDebugPanel() { + var content = document.getElementById('debug-content'); + var icon = document.getElementById('debug-toggle-icon'); + if (content.style.display === 'none') { + content.style.display = ''; + icon.textContent = '▼'; + } else { + content.style.display = 'none'; + icon.textContent = '▶'; + } + } + function updateDebug(t, palette, vantaColors, themeName, realDayProgress) { var now = new Date(); var hh = now.getHours(), mm = now.getMinutes(), ss = now.getSeconds();