30

In Windows 7 and Windows XP it was very easy to change the default background color of all windows to whatever you want. Staring at white window backgrounds all day is hard on the eyes. Once changed, ALL windows of all apps would conform to the custom color as long as the apps allowed the windows bg to be invoked. So for example it worked great in Notepad and many other apps.

Then the geniuses at M$ decided that this feature was no longer needed in Windows 8, and removed it. There were some reg hacks, but nothing standard. I remember reading that the feature would be coming back in Windows 10, but I'm not finding this to be the case. The only [partial/broken] way I have found to be able to do this is to tweak the following registry keys:

[HKEY_CURRENT_USER\Control Panel\Colors]
"Window"="227 221 191"

[HKEY_CURRENT_USER\Control Panel\Desktop\Colors]
"Window"="227 221 191"

When I changed those keys to my chosen soothing color and rebooted, it worked ONE TIME. After every reboot thereafter, all the white backgrounds are back AND YET those registry keys still have my custom RGB codes. I really hate Microsoft right now, but that aside, is there any solid way to change windows 10 bg colors and make it stick?

Important: In Settings -> Personalization -> Colors, none of that changes windows backgrounds. Already tried.

I am using Windows 10 Enterprise Version 1511 Build 10586.3.

UPDATE: I rebooted again and the bg colors work correctly...but later in the day all the window bgcolors were back to white again. Windows 8.1 had the exact same bug. My conclusion is that the reg hack "works" but only intermittently. Is this simply a MS bug? Or is there a better answer/solution?

HerrimanCoder
  • 570
  • 4
  • 14
  • 35

5 Answers5

15

Apologies for the late answer. It had completely skipped my mind.

I haven't tested this solution thoroughly but it seems to do the job. You'll need to switch to a High Contrast theme for this to work. After you apply the theme, Windows should look like this:

Windows 10 High Contrast Black Theme

Context Menus and Metro UI apps are also affected:

Windows Notepad High Contrast Black Context Menu Windows 10 Settings App High Contrast Metro UI

If you use Google Chrome for web browsing, it'll prompt you to install the High Contrast extension after you apply the High Contrast theme so you can also browse the web in high contrast. You can also use the extension without enabling High Contrast mode.

As @Unsigned mentioned earlier, enabling High Contrast may change the look of several UI elements.

If you still want to enable High Contrast mode, you can copy the following into Notepad and save it as a .theme file and double-click on it to apply it.

[Theme]
DisplayName=High Contrast Black

[Control Panel\Colors]
Background=0 0 0
Window=0 0 0
Menu=0 0 0
InfoWindow=0 0 0
WindowFrame=0 0 0
AppWorkspace=0 0 0
ButtonFace=0 0 0
ButtonHilight=0 0 0
ButtonLight=0 0 0
HilightText=255 255 255
Titletext=255 255 255
WindowText=255 255 255
ButtonText=255 255 255

[Control Panel\Desktop]
TileWallpaper=0
WallpaperStyle=10

[VisualStyles]
Path=%SystemRoot%\resources\themes\Aero\AeroLite.msstyles
ColorStyle=NormalColor
Size=NormalSize
HighContrast=1

[MasterThemeSelector]
MTSM=DABJDKT

I'm not sure if every one of those entries is necessary, so feel free to experiment. I found some information on the color section here, if it helps (link broken; WaybackMachine mirror).

EDIT:
If you do not want to enable High Contrast mode and only need to change the background window color from white to something else, you can use this theme instead:

[Theme]
DisplayName=Beige

[Control Panel\Colors]
Window=227 221 191

[Control Panel\Desktop]
TileWallpaper=0
WallpaperStyle=10

[VisualStyles]
Path=%SystemRoot%\resources\themes\Aero\AeroLite.msstyles
ColorStyle=NormalColor
Size=NormalSize

[MasterThemeSelector]
MTSM=DABJDKT

Just copy that to into Notepad and save it as beige.theme and double click on the file to apply the theme. Windows should look like this after you apply it:

Windows beige window background

You do not have to enable High Contrast mode or save the theme file to a particular location for it to work. Make sure that %SystemRoot%\resources\themes\Aero\ contains a file named AeroLite.msstyles.

Vinayak
  • 10,625
  • 10
  • 54
  • 89
  • 2
    Vinayak, will this high-contrast theme allow me to change the background color to something other than black? I don't want black, and in fact it's not really a high-contrast theme that I want. I want a background color that is somewhat beige, and all font colors just windows default, etc. – HerrimanCoder May 21 '16 at 17:21
  • @SweatCoder [Something like this?](http://i.imgur.com/u0R7mCH.png) – Vinayak May 21 '16 at 19:07
  • @SweatCoder I used the RGB values in your question and it [looks like this](http://i.imgur.com/0VWfQ7n.png). – Vinayak May 21 '16 at 19:14
  • Wow! This looks promising. Would you mind editing your answer with my RGB values (227 221 191), and give exact steps to apply it? I get saving the file from notepad, but does it need to be in a certain location first? Do I have to switch to High Contrast before applying the new theme? How is it applied exactly? Etc. Etc. I'll award your answer as soon as I can repro and get this working on my PC. Thanks! – HerrimanCoder May 22 '16 at 02:00
  • @SweatCoder I edited my answer. There's nothing special about applying the theme. You only need to double click on the `.theme` file to apply it. – Vinayak May 23 '16 at 09:28
  • @SweatCoder Thanks for this. Saved my bacon during Windows 10 upgrades in a corporate setting! – Michael Frank Jun 08 '16 at 01:38
  • 4
    I finally got this all working, thanks to your answer, but I want to add a critical element. The BEST/EASIEST way to change windows bgcolor is to find an existing theme you like (downloaded from MS or whatever) and edit that theme. Most the time it will NOT contain the [Control Panel\Colors] section, so you need to add that somewhere in the theme. Save it. Double-click it. Done. Vinayak's answer was very helpful, but when I installed his posted (raw) theme above, it screwed up many colors and caused problems (no worries Vinayak, easy to fix). Just edit existing, add section, install. Perfect! – HerrimanCoder Jun 08 '16 at 13:04
  • 2
    Also: Here's how to edit a theme pack: Theme packs (.themepack extension) such as the ones you can download from MS are actually CAB files which can be cracked open with winzip or similar. Inside you'll find a .theme file along with usually other files. All you care about is the .theme file. Extract it and edit in notepad. Add the [Control Panel\Colors] - Window=227 221 191 (SEE ABOVE EXAMPLE). Change DisplayName setting at top. Save. Double-click. Your theme will be installed and you'll have the bgcolor of your choice. THANKS Vinayak for pointing me in the right direction. – HerrimanCoder Jun 08 '16 at 13:09
  • 6
    Hey M$, why the heck did you make it so bloody difficult to change the windows background color? This required months on this thread, along with expert comments and experimentation. It would have been so EASY for you to expose a color editor or theme editor to pick the colors you want for all aspects of windows. In windows 7 and xp you could do this and you took it away. – HerrimanCoder Jun 08 '16 at 13:11
  • One final comment: although this custom theme approach works great, Windows 10 continuously reverts my custom theme selection back to a default theme. I can easily change it back to custom, and all my colors instantly come back, but literally within an hour, the default theme comes back. Any ideas? – HerrimanCoder Jun 22 '16 at 13:12
  • I have seen the same: Windows switched to white window background (destop background untouched) after a while, reproducible via Win+L (Lock), Sign-in. Solution: start the 'Themes' service ;) — please confirm. Then the themes file content given after the **EDIT:** seems to be the minimal need. BTW I prefer `Path=%SystemRoot%\resources\themes\Aero\Aero.msstyles` for narrower window frame. – thoku Jun 24 '17 at 15:40
  • did anyone found a way to also *just* change the win10 explorer background? (Vinayak's Beige.theme doesn't change it) – JinSnow Jul 03 '17 at 10:56
  • Your theme does change the window background, but it does a bunch of other stuff too. Could you please strip it down to show us how to ONLY change window background color? – Stephen R Sep 27 '17 at 16:33
  • 1
    The link to the _Color Section_ is dead. There's the [section in Windows Dev Center's _Theme File Format_](https://docs.microsoft.com/en-us/windows/win32/controls/themesfileformat-overview#control-panelcolors-section) – Gerold Broser Aug 05 '19 at 19:28
  • 1
    Also, the [`[Visual Styles]` section in _Theme File Format_](https://docs.microsoft.com/en-us/windows/win32/controls/themesfileformat-overview#visual-styles-section) says: Either `.msstyles` file **or** `metrics` and `color` sections, not both. – Gerold Broser Aug 05 '19 at 20:12
  • 1
    @GeroldBroser Thanks! Added a mirror for the broken link – Vinayak Aug 06 '19 at 07:16
  • I've encountered this problem on a newly-installed machine and the beige style isn't working for me -- everything's still white. :-( (I realize this answer is three years old, but in case anybody is reading this and can help me...) – Monica Cellio Aug 26 '19 at 19:40
  • @MonicaCellio what version of Windows are you trying this on? – Vinayak Aug 26 '19 at 21:56
  • @Vinayak Windows 10 Enterprise, version 1709. – Monica Cellio Aug 26 '19 at 22:00
  • @MonicaCellio I'm running version 1903 and quickly tried applying the beige theme in Windows Sandbox and it seems to have worked ([screenshot](https://i.imgur.com/l7STuff.png)). Since you're running Enterprise, could you check if it works in Windows Sandbox? – Vinayak Aug 26 '19 at 22:14
  • @Vinayak thanks; I'll try tomorrow (after asking Google what Windows Sandbox is). I left the recalcitrant machine at the office doing some large downloads overnight. – Monica Cellio Aug 26 '19 at 23:07
  • @MonicaCellio it seems Windows Sandbox is a feature that rolled out with the 1903 update so you'll probably need to update Windows to try it out – Vinayak Aug 28 '19 at 06:04
  • @Vinayak ah, that explains why I can't find it. Our updates are controlled through IT, so I guess I'll have to wait a bit. (I thought I was hung up on the BIOS setting that I haven't succeeded in changing yet.) – Monica Cellio Aug 28 '19 at 14:57
  • @MonicaCellio I don't have access to Windows 10 version 1709 but I believe it should work there as well. When you save the **.theme** file, could you check if Notepad isn't actually giving it a **.txt** extension? – Vinayak Aug 30 '19 at 06:49
  • Is there a way to do this with a registry hack instead? (As it would be more useful for scripting purposes.) Where would this registry be located for active vs inactive windows. – not2qubit Jan 25 '20 at 14:57
  • I noticed that different windows version may have different [MasterThemeSelector](https://docs.microsoft.com/en-us/windows/win32/controls/themesfileformat-overview#masterthemeselector-section): `[MasterThemeSelector] MTSM=DABJDKT` and as always, Windows dev's never explain what these cryptic codes means. – not2qubit Jan 25 '20 at 15:08
  • @not2qubit I'm not sure if this can be achieved through registry edits but it might be possible. I'd recommend creating a snapshot of the registry, changing the changing, taking another snapshot and then comparing the two. The registry tools from the Sysinternals bundle should help with this. – Vinayak Jan 26 '20 at 12:35
  • Is there a way to automate this for a network script for automatically setting these settings on log-in? I found it messed up my taskbar colours but at least I got my backgrounds. Thanks. – Steve Feb 23 '21 at 17:15
  • @Steve that sounds like it'll need to be another question in itself. If you ask it, maybe I or someone else can answer it – Vinayak Feb 28 '21 at 20:21
  • @Vinayak Thanks - I put it up as https://superuser.com/questions/1630086/set-windows-background-colours-from-a-webpage-script – Steve Mar 01 '21 at 22:16
5

I change it via going through this blog and this one.

  1. First, open a File Explorer window and navigate to C:\Windows\Resources\Themes.  Select the “aero” folder, press Ctrl+C to copy it, and then immediately press Ctrl+V to paste it and make a copy of it.  Click “Continue” to the UAC prompt.  Select “Do this for all current items” and click “Skip” when you see the File Access Denied window.

  2. You’ll get a folder named “aero - Copy”. Rename it to “color”. (It doesn’t have to be “color”, but we’ll be using color throughout here — you just need to use a consistent name.)

  3. Go into your new folder.  You’ll see a file named “aero.msstyles”.  Rename it to “color.msstyles”.  Click “Continue” when you see the UAC prompt.

  4. Next, open the “en-US” folder and you’ll see an “aero.msstyles.mui” file.  Rename it to “color.msstyles.mui”.  When you see the UAC prompt, click Continue.

    The “en-US” folder may have a different name if you’re using a different language edition of Windows.

  5. Go back to the main Themes folder and you’ll see a file named “aero.theme”.  Select it and copy it by pressing Ctrl+C.  Switch over to your desktop and press Ctrl+V to paste a copy of the file there.  Rename the new “aero.theme” file to “color.theme”.

  6. Right-click the “color.theme” file, point to “Open With”, select “Choose another app”, and open it with Notepad.

  7. Scroll down in the file and locate the line under [VisualStyles] reading

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

    Replace it with

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

    Save your changes and close Notepad afterwards.

  8. Select the “color.theme” file and press Ctrl+X to cut it.  Go back to the C:\Windows\Resources\Themes folder and press Ctrl+V to paste it here.  Agree to the UAC prompt when you’re done.  You now have a theme that can use colored window title bars.

  9. Activate the Theme —  Double-click the “color.theme” file to activate your new theme. Windows will switch to the “color.theme” file and your window titlebars will immediately become colored.

  10. Pick a Custom Color —  As on Windows 8, Windows automatically chooses an “accent color” from your desktop background by default.  But you can set your own custom color.

  11. Right-click the desktop and select “Personalize”, or open the Settings app and select “Personalization” to find these options.  Pick the “Colors” category.  Disable the “Automatically pick an accent color from my background” option and you’ll see a list of different colors you can use.

  12. This list is still a bit limited compared to the Color and Appearance options in Windows 8.1, which allowed you to select any color you liked. This desktop control panel has been completely hidden in Windows 10.  However, you can still access it — for now.

  13. To access this hidden control panel, press Windows Key+R to open the Run dialog. Copy-and-paste the following line into the Run dialog and run the command:

        rundll32.exe shell32.dll,Control_RunDLL desk.cpl,Advanced,@Advanced
    

    The “Show color mixer” option here will let you pick any color you want for your window title bars.

User008
  • 171
  • 1
  • 7
3

You can do a registry edit as described here: Window Color and Appearance removed in Win10? to change the background color in Windows 10

Paul Bullivant
  • 371
  • 2
  • 5
  • This worked for me for some windows, but not File Browser or OneDrive. Is stuff built into Windows protected from user modification or something, I wonder? – Monica Cellio Aug 26 '19 at 20:07
2

High Contrast themes allow you to change the default window background, as well as default text/selection colors, system-wide.

The downside is that High Contrast-type themes also change the appearance of various UI elements, as well as disable certain customization options (such as lock screen spotlight images.)

2

You can do it using the GreyEveTheme FINAL- Windows 10 High Contrast Theme . It's a customised high contrast theme. To customized it, just change the color value (it's just a normal text file, pretty intuitive).

ps: Many thanks to it's creator.

Edit: I just discovered the "night light settings" it's very interesting.

JinSnow
  • 774
  • 11
  • 25