How does Win10 set the color theme bar?

  

The color is limited to the length of the space. After the official version of Windows 10, all the title bars of Window are unified into a pale one. No matter what color theme you choose, there will only be 1 The stroke of the pixels is very boring.

In fact, it is difficult to change the current pale setting, but it is necessary to introduce the color distribution mechanism of the theme bar under Windows 10.

It's not difficult, but before that, we need to explain the color distribution mechanism of the Win10 theme title bar. In the Windows system file, there is a uDWM.dll file (file path C:\\Windows\\System32) that is used to detect whether the theme file is "aero.msstyles", if the theme file is confirmed as aero.msstyles, then The subject title bar will be set to white. Therefore, in theory, as long as the above-mentioned name matching event is avoided, the title bar color will be restored to the previous colorful style.

Since you know the detection mechanism of Windows, you can change the theme bar to any color you like by just avoiding it.

First enter C:\\Windows\\Resources\\Themes, find the aero folder, make a copy of the folder (copy it to another place, add a suffix and paste it back), there will be a file during the copy process. Because the permission issue cannot be copied, check ““ perform this operation for all current projects”, then click “Skip”.

Rename the copy folder, the name is arbitrary (not aero, this article is modified to CFan, the following need to modify the name of the location must be uniformly modified to the same name, excluding the suffix name) Double-click to open the aero.msstyles file and rename it to CFan.msstyles (matching the folder name).

Go to the zh-CN folder (to enter the folder that matches the current system language, the English version generally enters the en-US folder), rename aero.msstyles.mui to CFan. Msstyles.mui (matches the folder name)

Go back to C:\\Windows\\Resources\\Themes, copy aero.theme to another location, and rename it to CFan.theme. Right click on CFan.theme and select “Open with”, in the pop-up list, first click “More apps" (first choice may be needed), find “Notepad”, select and click “ ”.

Located at the end of the open file

Path=%ResourceDir%\\Themes\\Aero\\Aero.msstyles

Save as follows:

Path=%ResourceDir%\\Themes\\CFan\\CFan.msstyles

Close Notepad and double-click the CFan.theme file you just modified. The new topic title bar will follow the theme color sync. changed. To get back to the Windows 10 default title bar style, just right click on the desktop and select “Personalize-Themes&rquo; switch to any other default theme.

How about, now Windows 10 is colorful? Hey, you said that the height of the title bar is not good enough in some colors? The width of the scroll bar is also inappropriate?

Let's take a look at "Win10 font blur? The adjustment of the height of the menu bar in 5 minutes of zooming freely, the adjustment items of the title bar and the scroll bar are all under the

HKEY_CURRENT_USER\\Control Panel\\Desktop\\WindowMetrics

path, the value The calculation is also based on the way that the last small series said, this time just adjust the specific values ​​of "CaptionHeight" and "ScrollWidth" (the scroll bar width), the principle is based on everyone's favorite.

The above is how Win10 sets up the color theme bar method, the operation is very simple, we can follow the above steps to operate, I hope to help everyone!

Copyright © Windows knowledge All Rights Reserved