From 3088e9ee81f8e098070633edf9c2bd17bd25842a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 19 Nov 2025 03:36:05 +0000 Subject: [PATCH] Group e-ink parameters into dedicated accordion UI section Creates a new "E-Ink Settings" accordion section above "Advanced Settings" in the UI to better organize e-ink related parameters. This improves usability by grouping related settings together. Changes: - Add new E-Ink Settings accordion with toggle functionality - Move e-ink parameters to E-Ink Settings: - Custom Color Palette (colors) - Palette Colors (palette_colors) - Dithering Algorithm (dithering) - Invert Colors (invert) - Keep in Advanced Settings: - Format - Wait Time - Rotation (as requested) - Add toggleEink() JavaScript function for accordion behavior --- puppet/ha-puppet/html/index.html | 170 +++++++++++++++++++------------ 1 file changed, 106 insertions(+), 64 deletions(-) diff --git a/puppet/ha-puppet/html/index.html b/puppet/ha-puppet/html/index.html index b14020b..0a7240a 100644 --- a/puppet/ha-puppet/html/index.html +++ b/puppet/ha-puppet/html/index.html @@ -244,17 +244,17 @@ /> - +
- + + +
+ + + @@ -968,6 +996,20 @@

} } + // Toggle e-ink settings accordion + function toggleEink() { + const einkSettings = document.getElementById("einkSettings"); + const einkIcon = document.getElementById("einkIcon"); + + if (einkSettings.classList.contains("hidden")) { + einkSettings.classList.remove("hidden"); + einkIcon.style.transform = "rotate(180deg)"; + } else { + einkSettings.classList.add("hidden"); + einkIcon.style.transform = "rotate(0deg)"; + } + } + // Toggle advanced settings accordion function toggleAdvanced() { const advancedSettings = document.getElementById("advancedSettings");