Commit 100bdc8
committed
feat(web-ui): sync theme from native app to web UI
Move shared theme definitions (38 themes, ThemeKind, ThemePalette) from
arbor-gui into arbor-core so both the GUI and httpd can use them.
Add GET /api/v1/config/theme endpoint that reads the theme slug from
~/.config/arbor/config.toml and returns the full palette as hex strings.
The web UI fetches the theme on startup and polls every 5 seconds,
applying all palette colors as CSS custom properties. The xterm.js
terminal theme is also updated with proper ANSI color mappings for
both light and dark themes, including contrast-safe values for light
backgrounds.1 parent d00455d commit 100bdc8
12 files changed
Lines changed: 1288 additions & 888 deletions
File tree
- crates
- arbor-core/src
- arbor-gui/src
- arbor-httpd/src
- arbor-web-ui/app/src
- components
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments