Color TUI statusline from active theme#19631
Merged
Merged
Conversation
aa9c3d9 to
ae53f53
Compare
canvrno-oai
approved these changes
May 1, 2026
canvrno-oai
left a comment
Contributor
There was a problem hiding this comment.
Tested and reviewed, this is a nice addition.
This was referenced May 1, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
Users have shared that the TUI can feel too visually flat because themes mostly show up in code syntax highlighting. The configurable statusline is a natural place to make the active theme more visible, while still letting users keep the existing monotone statusline if they prefer it.
What Changed
(StatusLineItem, text)segments, preserving item identity while keeping the plain text output unchanged.[tui].status_line_use_colors, defaulting totrue, plus a separated/statuslinetoggle so users can enable or disable theme-derived statusline colors from the setup UI./statuslinepreview to use the same styled builder, while keeping terminal-title preview text plain.Verification
cargo test -p codex-tui status_linecargo test -p codex-tui theme_pickercargo test -p codex-tui foreground_style_for_scopescargo test -p codex-tuicargo test -p codex-configcargo test -p codex-core status_line_use_colorscargo insta pending-snapshots --manifest-path tui/Cargo.tomlVisual