fix: black BackInfo bg + wrong taskbar accent color
All checks were successful
release / build-and-release (push) Successful in 22s

BackInfo.ini:
- AutoBackground=0: don't read live desktop color during deployment;
  Windows hasn't propagated the registry background color to the
  live session yet, so AutoBackground reads black
- BackgroundColor=4668194: explicit COLORREF for #223B47
  (was 2097152 = 0x200000 = RGB(0,0,32), near-black)

05-personalization.ps1:
- Add Explorer\Accent\AccentColorMenu = 0xFF473B22
- Add Explorer\Accent\StartColorMenu = 0xFF473B22
  Windows taskbar reads AccentColorMenu for its color when
  ColorPrevalence=1; DWM\AccentColor only controls title bars.
  Without these keys the taskbar shows Windows default blue
  (RGB 130, 232, 253 = Windows 11 "Steel" default accent).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
X9 Dev 2026-04-16 15:58:53 +02:00
parent 9027718f7f
commit b58441d6b7
2 changed files with 16 additions and 2 deletions

View file

@ -56,8 +56,11 @@
;;
[General]
BackgroundColor = 2097152
AutoBackground = 1
; #223B47 in COLORREF (0x00BBGGRR): R=34 G=59 B=71 = 71*65536 + 59*256 + 34 = 4668194
BackgroundColor = 4668194
; AutoBackground=0: do NOT read live desktop color - unreliable during deployment
; (live session may not yet reflect the registry background color change)
AutoBackground = 0
Output = %temp%\backinfo.bmp
UpdateDesktop = 1
LineSpacing = 2

View file

@ -94,6 +94,17 @@ function Apply-ThemeSettings {
Set-Reg -Path "$HiveRoot\Software\Microsoft\Windows\DWM" `
-Name "ColorPrevalence" -Value 1
# -----------------------------------------------------------------------
# Accent color for taskbar
# Windows taskbar reads AccentColorMenu from Explorer\Accent, NOT DWM\AccentColor.
# Without this key the taskbar keeps the Windows default accent (light blue).
# -----------------------------------------------------------------------
Set-Reg -Path "$HiveRoot\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent" `
-Name "AccentColorMenu" -Value $AccentColorABGR -Type "DWord"
Set-Reg -Path "$HiveRoot\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent" `
-Name "StartColorMenu" -Value $AccentColorABGR -Type "DWord"
# -----------------------------------------------------------------------
# Wallpaper - solid color #223B47 (fallback before DesktopInfo runs)
# -----------------------------------------------------------------------