From b58441d6b7a8ccafbd4fb5ff374387f70137c3e0 Mon Sep 17 00:00:00 2001 From: X9 Dev Date: Thu, 16 Apr 2026 15:58:53 +0200 Subject: [PATCH] fix: black BackInfo bg + wrong taskbar accent color 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 --- assets/Backinfo/BackInfo.ini | 7 +++++-- scripts/05-personalization.ps1 | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/assets/Backinfo/BackInfo.ini b/assets/Backinfo/BackInfo.ini index c415a2c..4a643df 100644 --- a/assets/Backinfo/BackInfo.ini +++ b/assets/Backinfo/BackInfo.ini @@ -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 diff --git a/scripts/05-personalization.ps1 b/scripts/05-personalization.ps1 index 987f5d0..aa879cd 100644 --- a/scripts/05-personalization.ps1 +++ b/scripts/05-personalization.ps1 @@ -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) # -----------------------------------------------------------------------