feat: add customizable UI styles for menus and messages#475
Merged
altsem merged 3 commits intoaltsem:masterfrom Dec 15, 2025
Merged
feat: add customizable UI styles for menus and messages#475altsem merged 3 commits intoaltsem:masterfrom
altsem merged 3 commits intoaltsem:masterfrom
Conversation
Add new style configuration options to allow users to customize the appearance of menus, command logs, and UI elements: - Menu styles: heading, key, active_arg, inactive_arg - Message styles: info_msg, error_msg, command - UI element styles: separator, prompt This provides users with finer control over the UI appearance similar to Magit's transient face system. Also fixes layout_line to properly merge line.style with span.style, ensuring Line::styled works correctly throughout the application. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
auto-merge was automatically disabled
December 13, 2025 10:59
Head branch was pushed to by a user without write access
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.
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