mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-23 08:58:00 +00:00
The browser drives the device's own Settings pages instead of a second copy of them: WebSettingsEngine.h builds a category page out of sight, describes its widgets as JSON over /term (kit rows record themselves while the web session is on), applies changes by setting widgets and sending the events a tap would, and tears the page down, all in one UI-loop call. New settings show up on the web with no extra work and save through the device's own code. - settings.html: category sidebar, cards per page, one Save bar for all changes, write-only secrets, device confirms and a confirm for danger actions, sub-pages with breadcrumbs, reconnect after a restart. - theme.css: shared tokens; every page follows the browser's light/dark mode. - index, mesh, files, screen and the approval overlay restyled on it. - /settings route (gated like Mesh) and a settings flag in /api/info. Tested: T-Deck Pro, Heltec V4 TFT and T-Deck Plus builds; host tests (56 pass); pages checked in headless Chrome against a mock device. Not yet tested on hardware. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
7 lines
1.7 KiB
CSS
7 lines
1.7 KiB
CSS
:root{color-scheme:light dark;--bg:#f4f6f7;--bg2:#fff;--panel:#fff;--panel2:#eef2f3;--hover:#e8edee;--line:#e1e6e8;--line2:#cdd5d8;--text:#131a1d;--sub:#5a666b;--faint:#8a959a;--acc:#0e9a8c;--acc-ink:#fff;--acc-soft:rgba(14,154,140,.12);--danger:#d0433d;--danger-soft:rgba(208,67,61,.1);--warn:#b07415;--warn-soft:rgba(176,116,21,.12);--info:#2c6bcf;--info-soft:rgba(44,107,207,.1);--ok:#178a56;--ok-soft:rgba(23,138,86,.12);--in:#eef2f3;--out:#d5f2ee;--shadow:0 1px 2px rgba(16,24,40,.05),0 2px 8px rgba(16,24,40,.06);--pop:0 10px 30px rgba(16,24,40,.18);--r:12px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
|
|
@media (prefers-color-scheme:dark){:root{--bg:#0c0f11;--bg2:#111518;--panel:#151a1d;--panel2:#1b2125;--hover:#20272b;--line:#232a2e;--line2:#313a3f;--text:#e6ebed;--sub:#9aa5aa;--faint:#68747a;--acc:#19d6c2;--acc-ink:#04201d;--acc-soft:rgba(25,214,194,.13);--danger:#ff6b6b;--danger-soft:rgba(255,107,107,.12);--warn:#e8b84b;--warn-soft:rgba(232,184,75,.13);--info:#6aa8ff;--info-soft:rgba(106,168,255,.12);--ok:#3ccf8e;--ok-soft:rgba(60,207,142,.12);--in:#1b2125;--out:#103a35;--shadow:0 1px 2px rgba(0,0,0,.35);--pop:0 12px 36px rgba(0,0,0,.55)}}
|
|
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.4;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}
|
|
button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}
|
|
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
|
|
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:var(--line2);border-radius:10px;border:3px solid transparent;background-clip:content-box}
|