1
0
mirror of https://github.com/s00500/ESPUI.git synced 2026-01-16 18:46:21 +00:00

Implement setCustomCSS for custom CSS injection

This commit introduces `setCustomCSS` to the ESPUI class, allowing users to inject custom CSS into the web interface, analogous to `setCustomJS`.

Changes include:
- Added `setCustomCSS` method to `ESPUI.h` and `ESPUI.cpp`.
- Added `/css/custom.css` route handler in `ESPUI.begin`.
- Updated `data/index.htm` to include the link to `/css/custom.css`.
- Regenerated static UI sources (minified files and C headers) using `tools/prepare_static_ui_sources.py`.
This commit is contained in:
google-labs-jules[bot]
2025-11-22 22:22:28 +00:00
parent 41c75cc41e
commit f6da0ed7e8
14 changed files with 424 additions and 423 deletions

View File

@@ -10,6 +10,7 @@
/>
<link rel="stylesheet" href="/css/normalize.css" />
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/custom.css" />
<script src="/js/zepto.min.js"></script>
<script src="/js/slider.js"></script>