How to set a custom active title bar color via Registry?


  1. Posts : 86
    Windows 7 Professional x64
       #1

    How to set a custom active title bar color via Registry?


    Is it possible to set a custom active title bar color via the Registry?

    This works for the inactive title bar color:
    Code:
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /v "AccentColorInactive" /t REG_DWORD /d "your color here" /f
      My Computer


  2. Posts : 42,953
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    How do you set a custom active title bar color via the Registry?

    If research doesn't tell you, then here's how you can find out.

    1. Make sure your PC is idle.
    2. Create your 1st registry snapshot with Regshot (free prog) (wait...)
    3. Change the colour
    4. Create your 2nd registry snapshot with Regshot (free prog) (wait...)
    5. Click the compare button, then inspect the report.
      My Computers


  3. Posts : 86
    Windows 7 Professional x64
    Thread Starter
       #3

    Thanks for your reply, dalchina.

    Before starting this thread I spent hours trying different things without success. I was snooping the Registry with various tools. I tried a dozen registry entries, etc. The only thing I was able to achieve was to get the inactive title bar color right.

    Hopefully I'm not the only one here who wants to set a custom active title bar color via the Registry.
      My Computer


  4. Posts : 27,181
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #4

    For easier changing use SMACC from Superfly(one of our forums members, and software developer):
    S.M.A.C.C - Superfly's Mouse Assisted Color Chooser - Windows 10 Forums

    How to set a custom active title bar color via Registry?-image.png
      My Computers


  5. Posts : 42,953
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #5

    lolnothankyou said:
    Thanks for your reply, dalchina.

    Before starting this thread I spent hours trying different things without success. I was snooping the Registry with various tools. I tried a dozen registry entries, etc. The only thing I was able to achieve was to get the inactive title bar color right.

    Hopefully I'm not the only one here who wants to set a custom active title bar color via the Registry.
    That tool (Regshot) works.. I've used it quite a lot over the years. It should work for this. Have you actually tried it??
    I'd really rather prefer not to have to do that for you.

    https://www.howtogeek.com/198679/how...your-registry/

    But there are much much better ways - tutorials cover this, although not mentioning the registry key I think, and @Cliff S has mentioned SMACC.
    I assume you want to know about the registry for a particular reason e.g. a script.
      My Computers


  6. Posts : 86
    Windows 7 Professional x64
    Thread Starter
       #6

    Thanks, Cliff S, I will give S.M.A.C.C a try.

    dalchina said:
    Have you actually tried it?
    No. I have used RegScanner to find all registry changes in the last (you say) seconds. And RegFromApp while running Windows 10 Color Control 1.3 and I got some registry entries but they don't work when I apply them on a new machine via script.
    dalchina said:
    I'd really rather prefer not to have to do that for you.
    Please don't. It's not what I'm expecting here. I just wanted someone to copy/paste the code from somewhere (like their own script).
    dalchina said:
    I assume you want to know about the registry for a particular reason e.g. a script.
    Exactly.
      My Computer


  7. Posts : 42,953
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

    You have the means- you could resolve that in 10 mins.

    https://social.technet.microsoft.com...or-in-registry

    Found by 1 search:
    change active title bar colour script

    It's indeed the HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM\ColorPrevalence registry value that's controlling the active window's title bar/border color.
    Try it..
      My Computers


  8. Posts : 2,205
    WINDOWS 10 Pro x64 build 19042.685
       #8

    Maybe "AccentColor"?, some time ago I wrote a post about that on Reddit, I don't know if it's what you're looking for (maybe not), this is the link just in case:

    Title bars and the file explorer.

    Maybe here in Ten forums, a tutorial was already done on that, I didn't search.
      My Computer


  9. Posts : 86
    Windows 7 Professional x64
    Thread Starter
       #9

    I have some progress:

    1. Make sure this is not set to 1
    Code:
    reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "AutoColorization" /t REG_SZ /d "0" /f
    2. allow colored title bars and set active / inactive title bar color
    Code:
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /v "ColorPrevalence" /t REG_DWORD /d "1" /f
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /v "AccentColor" /t REG_DWORD /d "7439985" /f
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /v "AccentColorInactive" /t REG_DWORD /d "13882323" /f
    Now I have to find out how to replace the default blue frame on non-maximized windows with 7439985.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:32.
Find Us




Windows 10 Forums