UWP apps freeze for few seconds when system theme/accent color changes
See original GitHub issueDescribe the bug All UWP apps seem to be affected by this bug, some of them less (I guess simpler UI tree) and some more. Whenever the system theme changes, the apps will freeze for few seconds (1-5?). Something interesting that we found out while researching about this behavior:
- The freeze affects the app in any case, even if it explicitly sets a
RequestedTheme
inApp
. - Resizing the app window while it is frozen seems to restore the app usability.
- Changing
RequestedTheme
from code behind is instant, and it works so nicely that I’ve added animations for that:
Steps to reproduce the bug
Steps to reproduce the behavior:
- Go to System settings > Personalization > Colors
- Change theme or accent color
- Try to interact with a UWP app, Settings included.
Expected behavior
The app won’t freeze, and the user can continue to interact with it. This is specially important if they have automatic theme/accent color switch based on current system wallpaper, and they have a wallpaper playlist enabled.
Screenshots
Version Info
Windows 10 version | Saw the problem? |
---|---|
Insider Build (xxxxx) | Yes |
May 2020 Update (19041) | Yes |
November 2019 Update (18363) | Yes |
May 2019 Update (18362) | Yes |
October 2018 Update (17763) | Yes |
April 2018 Update (17134) | Yes |
Fall Creators Update (16299) | Yes |
Creators Update (15063) | Yes |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Xbox | |
Surface Hub | |
IoT |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:32 (18 by maintainers)
Top Results From Across the Web
UWP Apps Has This Ugly Background Based on Accent ...
A leftover from legacy UWP app icons which were monochrome, thus needing a background to be visible on a white explorer window.
Read more >UWP app freezing every 30 seconds
When it freezes, moving the mouse over the app works, but the controls do not get highlighted on hover, no control gets focus...
Read more >Micro-Freeze Windows 10 at regular intervals affecting all ...
Short freezes of 1-3 seconds occurring at somewhat regular intervals. ... After turning the automatic accent color change off, I experienced ...
Read more >Observing system color changes in UWP apps - Martin Zikmund
Anytime the user changes the accent color or switches between dark and light mode, the resource is updated. To access the current accent...
Read more >Why is Windows 10 freezing for a second everytime the ...
The background will change, the computer will freeze for a full three seconds, and then the accent color will change.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jevansaks Windows 10 grinds to a halt when changing theme. I suspect that’s the underlying issue that @FrayxRulez is referring to here. Agree though, this is more of an OS issue than anything MUX related.
It’s not very productive to even talk about theme change performance relative to the app when the entire system is locked up.
This repros everywhere, even in a vm, and is well known, so not sure why you need traces from us?