How do I change the taskbar color from an XML file?

Bieber Fu 236 Reputation points
2020-07-15T15:58:23.11+00:00

I want to set the default color of the taskbar from blue to black
“Automatic” ->blue
“?” ->black
<Themes>
<ThemeName>Fabrikam Theme</ThemeName>
<DesktopBackground>%WINDIR%\OEM\CustomizationFiles\Theme1\fabrikam-wallpaper.jpg</DesktopBackground>
<BrandIcon>%WINDIR%\OEM\CustomizationFiles\Theme1\fabrikam-logo.png</BrandIcon>
<WindowColor>Automatic</WindowColor>
<UWPAppsUseLightTheme>false</UWPAppsUseLightTheme>
</Themes>

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,725 questions
{count} votes

Accepted answer
  1. Jenny Yan-MSFT 9,336 Reputation points
    2020-07-16T07:23:14.703+00:00

    Hi,
    Kindly not that Black and White are prohibited values for WindowColor.

    The specified WindowColor should have a luminosity range of 25% to 75% when converted to Hue, Saturation, and Luminosity (HSL) values. Any color outside a luminosity value of 25% to 75% is changed by Windows. If you pick white, for instance, you will get light grey.

    Thus if you would like to customize the color, it is recommended that you use a tool that supports HSL to select your color and adjust the luminosity to be within a 25% to 75% range before you convert it to RGB to specify the WindowColor.

    Reference link:
    https://learn.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-shell-setup-themes-windowcolor#values

    Thanks,
    Jenny


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.