Skip to content

Let herdr's tab bar show the terminal background, so it turns glassy too - #15022

Merged
dhh merged 1 commit into
quattrofrom
herdr-glassy-tab-bar
Oct 11, 2026
Merged

dhh merged 1 commit into
quattrofrom
herdr-glassy-tab-bar

Conversation

@dhh

@dhh dhh commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Under Glassy windows, herdr's tab bar stayed a solid black stripe, because Omarchy's herdr config painted it with panel_bg = "black".

Change:

  • panel_bg = "reset" draws the tab bar on the terminal's own background, like tmux's bg=default. It is see-through under Glassy and looks as before otherwise.
  • Without a panel color, herdr draws the active tab's text in surface_dim, which in the terminal theme is dark gray and hard to read on the blue accent. surface_dim = "black" keeps it dark text on blue, as in tmux's #[fg=black,bg=blue]. Pane dividers keep their gray. The thin sidebar separator line is drawn a little darker.
  • A migration makes the same change in existing configs that still have the shipped panel_bg = "black" and no surface_dim of their own, then reloads herdr. Any other choice is left alone, including a surface_dim of the user's own (indented or not), and a config a dotfile manager links in is never edited.

Checked:

  • Live on a glassy foot running herdr: the tab bar shows the blurred wallpaper and the active tab still reads clearly.
  • The migration is a no-op on a second run, and herdr config check accepts the result.
  • New test/shell.d/herdr-glassy-tab-bar-migration-test.sh covers the shipped config, a second run, an indented surface_dim of the user's own, and a linked config.
  • ./test/cli and the migrate tests pass.

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with a non-blocking correction needed in the regression test.

Findings

  1. P2 Test uses the wrong table ▶

Summary

Makes Herdr's tab bar use the terminal background while keeping dark text on the active tab.

  • Herdr's tab bar shows the terminal background under Glassy windows.

Reviews (2) · Last reviewed commit: "Let herdr's tab bar show the terminal ba..." · Reviewed by Greptile

Comment thread migrations/1791722809.sh Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh force-pushed the herdr-glassy-tab-bar branch from 6ff15f6 to d06f772 Compare October 11, 2026 13:18
pass "the shipped black tab bar takes the terminal background, once"

# A surface_dim of the user's own, indented or not, is kept as the only one.
{ cat "$test_dir/shipped.toml"; printf ' surface_dim = "white"\n'; } >"$config"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Test uses the wrong table

Appending surface_dim after the whole config puts it in [ui], not [theme.custom]. This catches the old whitespace check, but does not test two keys in the same table. It would also reject a correct guard that checks only [theme.custom].

Insert the indented setting inside [theme.custom] so the test covers the real duplicate-key case.

Suggested change
{ cat "$test_dir/shipped.toml"; printf ' surface_dim = "white"\n'; } >"$config"
sed '/^panel_bg = "black"$/a\ surface_dim = "white"' "$test_dir/shipped.toml" >"$config"

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