feat: add customizable UI styles for menus and messages #475
+197
−172
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.
Summary
Adds new style configuration options to allow users to customize the appearance of menus, command logs, and UI elements, providing finer control similar to Magit's transient face system.
New Style Options
Menu styles (
style.menu.*):heading- Menu titles and section headings (e.g., "Commit", "Arguments")key- Keybinding display (e.g., "-a", "c", "q/esc")active_arg- Active argument values (e.g., "--all", "--interactive")inactive_arg- Inactive argument valuesMessage styles:
info_msg- Info messages and command prompts (e.g., "$ ", "Running: ")error_msg- Error messagescommand- Command text in logs (e.g., "git status")UI element styles:
separator- Section separator linesprompt- Prompt text and separatorsTechnical Changes
layout_lineinsrc/ui.rsto properly mergeline.stylewithspan.style, ensuringLine::styledworks correctly throughout the applicationstyles_hashvalues which reflect the new style configurationsSnapshot Test Changes
All 132 snapshot test updates only change the
styles_hashline (from old hash → new hash), confirming that:Test Plan
🤖 Generated with Claude Code