Skip to content

feat: add :tab-background for delineating inactive wrap tabs#10

Merged
chiply merged 1 commit into
mainfrom
feat/tab-background
Jun 26, 2026
Merged

feat: add :tab-background for delineating inactive wrap tabs#10
chiply merged 1 commit into
mainfrom
feat/tab-background

Conversation

@chiply

@chiply chiply commented Jun 26, 2026

Copy link
Copy Markdown
Owner

What

Adds a :tab-background (and :inactive-tab-background) option to the wrap layout.

Previously svg-line-wrap-image only drew a box behind the current / modified / hovered tab — ordinary inactive tabs were transparent. The new tab-background keyword fills a box behind every other ordinary tab, so inactive tabs can be delineated like the built-in tab line.

Backward compatibility

nil is the default (and the inactive-window variant falls back through the same pick helper as the other colours), so any bar that doesn't set :tab-background renders exactly as before.

Changes

  • svg-line-wrap-image: new tab-background keyword; normalised via svg-line--color; added as the final box cond clause for ordinary tabs.
  • svg-line--build-wrap: passes :tab-background / :inactive-tab-background from the spec.
  • Docs: svg-line-wrap-image docstring + the svg-line-define wrap-only option list.

The `wrap' layout only drew a box behind the current, modified, or hovered
tab; ordinary (inactive) tabs were transparent.  Add a `tab-background'
keyword to `svg-line-wrap-image' (and a `:tab-background' /
`:inactive-tab-background' spec option threaded through `svg-line--build-wrap')
that fills a box behind every other ordinary tab, so inactive tabs can be
delineated like the built-in tab line.  nil (the default) keeps them
transparent, so existing bars are unchanged.
Copilot AI review requested due to automatic review settings June 26, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chiply chiply merged commit 98d28e6 into main Jun 26, 2026
7 checks passed
@chiply chiply deleted the feat/tab-background branch June 26, 2026 12:45
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