fix: black BackInfo bg + wrong taskbar accent color
All checks were successful
release / build-and-release (push) Successful in 22s
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:
parent
9027718f7f
commit
b58441d6b7
2 changed files with 16 additions and 2 deletions
|
|
@ -56,8 +56,11 @@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
[General]
|
[General]
|
||||||
BackgroundColor = 2097152
|
; #223B47 in COLORREF (0x00BBGGRR): R=34 G=59 B=71 = 71*65536 + 59*256 + 34 = 4668194
|
||||||
AutoBackground = 1
|
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
|
Output = %temp%\backinfo.bmp
|
||||||
UpdateDesktop = 1
|
UpdateDesktop = 1
|
||||||
LineSpacing = 2
|
LineSpacing = 2
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,17 @@ function Apply-ThemeSettings {
|
||||||
Set-Reg -Path "$HiveRoot\Software\Microsoft\Windows\DWM" `
|
Set-Reg -Path "$HiveRoot\Software\Microsoft\Windows\DWM" `
|
||||||
-Name "ColorPrevalence" -Value 1
|
-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)
|
# Wallpaper - solid color #223B47 (fallback before DesktopInfo runs)
|
||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue