webui: add dashboard-style theme polish

This commit is contained in:
2026-06-08 09:35:46 -06:00
parent 8dfcc63688
commit c49361488d
2 changed files with 171 additions and 1 deletions
+14 -1
View File
@@ -473,7 +473,7 @@ def test_embedded_webui_preserves_config_input_while_polling():
assert 'setConfigValue("apSsidInput"' in source
assert "deviceNameInput" in source
assert "bmsNameInput" in source
assert 'setConfigValue("tempEnabledCount"' in source
assert "tempEnabledCount" in source
def test_ap_config_can_be_reset_to_defaults():
@@ -500,3 +500,16 @@ def test_embedded_webui_has_consistent_button_intent_styles():
assert 'class="save" onclick="saveApConfig()"' in source
assert 'class="danger" onclick="resetApConfig()"' in source
assert 'class="save" onclick="saveWifi()"' in source
def test_embedded_webui_theme_v3():
source = firmware_source()
assert "/* UI theme v3 */" in source
assert "--accent:#5f8fcf" in source
assert "@media(min-width:980px)" in source
assert "#configPage" in source
assert "grid-template-columns:190px 1fr" in source
assert "button.save" in source
assert "button.danger" in source
assert "button.secondary" in source