All posts
#Windows11#Registry#PowerShell#Tweaks

Windows Tweaks & System Aesthetics: Registry settings the UI forgot

Windows Tweaks & System Aesthetics

Windows has a UI for almost everything. Almost. The rest lives in the registry, where a color can be a hex value, an RGB string, or a little-endian relic depending on which decade owns the setting.

1. DWM accent colors: HEX, but backwards

The Desktop Window Manager keeps its accent palette here:

HKCU\Software\Microsoft\Windows\DWM

The useful values are AccentColor and ColorizationColor. The trap: DWM does not want the familiar #RRGGBB representation. It expects the legacy DWORD layout 0xAABBGGRR.

That means the byte order is little-endian: red goes last, then green, then blue, with alpha at the front. For #2DD4BF, the DWM value is typically 0xFFBFD42D when using an opaque alpha byte.

PowerShell conversion:

$hex = '#2DD4BF'.TrimStart('#')
$rgb = [Convert]::ToUInt32("$($hex.Substring(4,2))$($hex.Substring(2,2))$($hex.Substring(0,2))", 16)
$dwm = 0xFF000000 -bor $rgb
Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\DWM' -Name AccentColor -Value $dwm

In other words: the registry is not broken; it is simply carrying a compatibility decision from the era when “intuitive” was not yet a product requirement.

2. The desktop selection rectangle

The blue rectangle around selected desktop icons comes from the older color branch:

HKCU\Control Panel\Colors

Use Hilight for the selection fill and HotTrackingColor for the hover/link-like highlight. This branch expects a space-separated RGB triplet, not a hex value:

Hilight           45 212 191
HotTrackingColor  34 197 94

That R G B format is a small hello from Windows 95. Changing it and restarting Explorer is usually not enough: the desktop may keep the old theme values until the user session is reloaded. Log out and back in when the rectangle refuses to update.

3. Removing the active-window outline

Windows can draw a 1px accent outline around the active window. It is an intentional focus indicator: without it, a window can visually melt into the wallpaper or another dark surface.

If that red, blue, or otherwise-accent-colored edge is not your thing, set ColorPrevalence to 0. This removes the outline while keeping the accent color available elsewhere in the interface:

Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\DWM' -Name ColorPrevalence -Type DWord -Value 0

One-command quick apply

Run PowerShell as the current user. No admin console, no expedition through regedit:

$hex = '#2DD4BF'.TrimStart('#'); $rgb = [Convert]::ToUInt32("$($hex.Substring(4,2))$($hex.Substring(2,2))$($hex.Substring(0,2))", 16); $dwm = 0xFF000000 -bor $rgb; $dwmPath = 'HKCU:\Software\Microsoft\Windows\DWM'; $colorsPath = 'HKCU:\Control Panel\Colors'; Set-ItemProperty $dwmPath -Name AccentColor -Type DWord -Value $dwm; Set-ItemProperty $dwmPath -Name ColorizationColor -Type DWord -Value $dwm; Set-ItemProperty $dwmPath -Name ColorPrevalence -Type DWord -Value 0; Set-ItemProperty $colorsPath -Name Hilight -Value '45 212 191'; Set-ItemProperty $colorsPath -Name HotTrackingColor -Value '34 197 94'; Write-Host 'Applied. Restart Explorer if needed; log out and back in for selection colors.'

Registry tweaks are reversible, but export the relevant keys first if this is a work machine. Windows already has enough undocumented opinions without adding one of your own.

Full command