Skip to content

Hide the selected-tab overline in unfocused windows [patch] - #165

Open
matt-edmondson wants to merge 1 commit into
mainfrom
fix/164-dimmed-tab-overline
Open

matt-edmondson wants to merge 1 commit into
mainfrom
fix/164-dimmed-tab-overline

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #164

What was wrong

ImGuiPaletteMapper mapped TabDimmedSelectedOverline and TabSelectedOverline to the same colour, opaque Primary High. Neither slot had an alpha override. ImGui draws the dimmed slot on the selected tab of every unfocused window or dock node, so all 38 built-in themes drew the focused-window accent line on every node's selected tab, and nothing showed which window had focus.

Change

TabDimmedSelectedOverline now has an alpha override of 0f in alphaOverrides. That matches stock ImGui, where StyleColorsDark() gives this slot (0.5, 0.5, 0.5, 0.0). TabSelectedOverline keeps its opaque Primary High.

Tests


Generated by Claude Code

ImGuiPaletteMapper mapped TabDimmedSelectedOverline to the same opaque
Primary High as TabSelectedOverline, so every dock node's selected tab
carried the focused-window accent line and nothing showed which window
had focus. Give the dimmed overline an alpha of 0, as ImGui's stock
styles do, and test across every built-in theme that only the focused
selected tab has an overline.

Fixes #164

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017vfJW25U4pSY6LX1PUqHvi
@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants