Repository navigation
feat(config): custom app-chrome colors via [appearance.colors] - #478
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an optional
[appearance.colors]section toconfig.tomlso 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
Keys:
accent,bg-0tobg-5,border,border-strong,text-primary,text-secondary,text-muted.Behavior
#rrggbb. Invalid values and unknown keys are reported as config errors.wmux reload-config.docs/config.md.Testing
New unit tests cover the config section and the
src/shared/ui-colors.tshelper. 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.