Skip to content

fix(render): use theme selection color instead of hardcoded default#280

Merged
forketyfork merged 3 commits intomainfrom
claude/fix-code-wtf-NuKaw
Apr 13, 2026
Merged

fix(render): use theme selection color instead of hardcoded default#280
forketyfork merged 3 commits intomainfrom
claude/fix-code-wtf-NuKaw

Conversation

@forketyfork
Copy link
Copy Markdown
Owner

@forketyfork forketyfork commented Apr 12, 2026

The terminal renderer was still hardcoding the default selection color (RGB(27, 34, 48)) instead of using theme.selection, so custom themes showed the wrong selection highlight.

While checking for the same mistake elsewhere, I found one more match in the worktree creation modal: its input field was still pinned to fixed One Dark-style colors. This PR now routes that input fill, border, and placeholder text through the active theme as well.

It also adds a small regression test around the derived modal input style and updates the configuration docs to make the theme coverage explicit.

Checks:

  • zig build
  • zig build test
  • just lint

https://claude.ai/code/session_01LEMeiusgjjsdom3xchh5Kh

claude and others added 3 commits April 12, 2026 12:46
The selection highlight in the terminal renderer was hardcoded to
RGB(27, 34, 48) — the default selection color — ignoring the user's
configured theme.selection color entirely. The entire theme pipeline
was correctly wired (config parsing, Theme struct, parameter passing)
but the renderer bypassed it with a magic constant.

https://claude.ai/code/session_01LEMeiusgjjsdom3xchh5Kh
@forketyfork forketyfork merged commit 8a46b09 into main Apr 13, 2026
4 checks passed
@forketyfork forketyfork deleted the claude/fix-code-wtf-NuKaw branch April 13, 2026 05:56
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