8000 feat(config): custom app-chrome colors via [appearance.colors] by Tu2525 · Pull Request #478 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

feat(config): custom app-chrome colors via [appearance.colors] - #478

Merged
amirlehmam merged 1 commit into
amirlehmam:masterfrom
Tu2525:feat/custom-ui-colors
Nov 25, 2026
Merged

amirlehmam merged 1 commit into
amirlehmam:masterfrom
Tu2525:feat/custom-ui-colors

Conversation

@Tu2525
@Tu2525 Tu2525 commented Nov 25, 2026
Copy link
Copy Markdown
Contributor

What

Adds an optional [appearance.colors] section to config.toml so users can override the app's interface colors (panel backgrounds, borders, text, accent). This allows custom themes, e.g. high-contrast or colorblind-friendly ones, without patching the app.

Related, not overlapping: Settings > General > App theme (System/Dark/Light) picks the built-in palette, and the focused-pane border slider (#471) tunes one border. This lets users replace the palette values themselves.

Config

[appearance.colors]
accent = "#58a6ff"
bg-0 = "#000000"

Keys: accent, bg-0 to bg-5, border, border-strong, text-primary, text-secondary, text-muted.

Behavior

  • Values must be #rrggbb. Invalid values and unknown keys are reported as config errors.
  • Applies at startup and on wmux reload-config.
  • Deleting a key restores the stock color. No change when the section is absent.
  • Documented in docs/config.md.

Testing

New unit tests cover the config section and the src/shared/ui-colors.ts helper. All 61 unit tests pass and the typecheck is clean. I haven't run this in a live app build.

Not included

No Settings UI for picking a theme; happy to follow up with one if wanted.

Lets users override the --ui-* surface, border, text and accent colors
from config.toml (validated #rrggbb, unknown keys reported), applied on
startup and wmux reload-config. Documented in docs/config.md.
@amirlehmam
amirlehmam merged commit 9489ea6 into amirlehmam:master Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0