Share via

Theme (colors, etc.) lost after recover from sleep mode

Eric 1708 1 Reputation point
2026-03-28T06:55:03.92+00:00

Hi there,

I am on Windows 11 (but I had the same problem on Windows 10), and I defined a personal file *.theme located in C:\Windows\Resources\Themes. If I double-click on it, the specifications of my theme are correctly installed. Super!

However, if my PC comes out from the sleeping mode, all color specifications (background colors, etc.), are lost, and I collect – for example – a white background in my applications, etc.

This looks like a well-known bug in Windows, and there are several people that tried to solve it, for example by defining a scheduled task upon waking up the PC from the sleeping mode. See for example here:

https://www.tenforums.com/general-support/87880-regedit-color-choice-doesnt-survive-sleep.html

I remained unable to solve this. Can someone help me to do that? For example, how can I define a new scheduled task that will re-install my theme each time my PC comes out from the sleeping mode? Are there any other way to overcome this problem?

Thanks in advance for any help on this.

Best, Eric.

Windows for home | Windows 11 | Sleep and Power on, off
0 comments No comments

2 answers

Sort by: Most helpful
  1. Hendrix-V 14,075 Reputation points Microsoft External Staff Moderator
    2026-04-16T07:52:36.09+00:00

    Hi Eric 1708,

    Thank you for sharing the detailed information.

    Based on your description, the custom theme installs correctly when applied manually, but after the PC resumes from Sleep, the system reverts to default colours (e.g. white backgrounds) until the theme is reapplied. This behaviour can occur when Windows does not immediately reload the user’s theme colour composition after waking from a low‑power sleep state, even though the theme settings themselves are still present.

    As a workaround, you can configure Windows to automatically reapply your theme each time the device wakes from Sleep:

    Step 1: Create a Script

    • Open Notepad, paste the following:
    timeout /t 5
    start "" "%SystemRoot%\Resources\Themes\YOURTHEME.theme"
    
    • Replace YOURTHEME.theme with your theme file name.
    • Save as: C:\Scripts\ApplyTheme.cmd

    Step 2: Create a Wake Trigger Task

    1 - Press Win + R > type taskschd.msc then press Enter

    2 - Select Create Task

    Go to General tab

    • Name: Reapply Theme On Wake
    • Check: Run with highest privileges

    Triggers > New

    • Begin task: On an event
    • Log: System
    • Source: Power-Troubleshooter
    • Event ID: 1

    Actions > New

    • Program: C:\Scripts\ApplyTheme.cmd

    Conditions

    • Uncheck: Start only if on AC power

    3 - Click OK to save.

    This will ensure your custom theme is automatically restored after the system resumes from Sleep without requiring manual intervention.

    Let me know if you need further assistance, feel free to ask me by clicking "Add Comment" or "Add Answer" if you cannot add comment so your response will be visible. Thanks for your effort.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. MUSTAFA SALAH 1,290 Reputation points
    2026-03-29T01:01:25.0033333+00:00

    Hello

    Check the below:

    1. Settings > Accessibility > Color filters. Ensure this is Off
    2. Settings > Accessibility > Contrast themes. Ensure this is set to None
    3. Open (Registry Editor) Tool

    HKEY_CURRENT_USER\Control Panel\Accessibility\HighContrast
    Flags = 122

    HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM
    ColorPrevalence** = 0
    Composition
    = 1

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UserProfileService
    ExtensionDebugLevel = 2

    1. Update / Re-Install the Last Driver for your Graphics Card.
    2. Disable "Fast Startup"
      (Power Options >
      User's image

    Does your PC use an Integrated GPU (Intel/AMD) alongside a dedicated one (example: NVIDIA)?

    Same Issue??

    Maybe your User Profile is corrupted. Better Create new local user account & copy your data from old to new

    (Settings > Users > Other users > Create New)

    I hope that helps!
    Regards,
    M


Your answer

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