Skip to content

fix(app): dark title bar on Windows 10 - #53

Merged
FedeB2160 merged 1 commit into
mainfrom
claude/v2-win10-titlebar-d26264
Nov 10, 2026
Merged

FedeB2160 merged 1 commit into
mainfrom
claude/v2-win10-titlebar-d26264

Conversation

@FedeB2160

Copy link
Copy Markdown
Owner

Parity check of phase 1, deviation 4: on Windows 10 22H2, with Windows light and the app Dark, the title bar stayed white. Windows 10 ignores DWMWA_CAPTION_COLOR/DWMWA_TEXT_COLOR (35/36); 1.x sets DWMWA_USE_IMMERSIVE_DARK_MODE (20) in src/modules/App.Theme.ps1.

  • TitleBar.Colors returns (Caption, Text, Dark); Apply sets attribute 20 from Dark before 35/36, which still win on Windows 11. Attribute 19 (builds before 2004) is not handled.
  • TitleBarTests: Dark true for 0x202020, false for 0xF3F3F3.
  • ADR 0027, point 1: dated note.

Tested: dotnet test --solution app\WinGetStudio.sln green; by hand in the Hyper-V VM Windows 10 22H2 (Dark makes the bar dark, Light makes it light again, at run time) and on Windows 11 (bar unchanged, caption buttons readable in both themes).

Windows 10 ignores DWMWA_CAPTION_COLOR/TEXT_COLOR (35/36), so with
Windows light and the app Dark the title bar stayed white, a regression
from 1.x. TitleBar.Apply now also sets DWMWA_USE_IMMERSIVE_DARK_MODE (20)
from the background luminance, before the colors, which still win on
Windows 11. Note in ADR 0027, point 1.
@FedeB2160
FedeB2160 merged commit 79cdcad into main Nov 10, 2026
3 checks passed
@FedeB2160
FedeB2160 deleted the claude/v2-win10-titlebar-d26264 branch November 10, 2026 17:00
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.

1 participant