You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Theme does not change properly on startup if OS theme is different to app selected theme #700
When a user has selected a theme in-app that differs to their device theme, the app starts up and the colours are all wrong.
Steps to Reproduce
Select a theme in app that differs from the OS theme
Force close the app
Open the app
When we set the theme the user has selected as soon as the app runs, the colours are all wrong.
I feel like this is a race condition between Uniwind Pro setting the theme natively to the OS theme, and then the app setting the theme to what the user had selected on a previous app open.
@jpudysz flipping the theme on startup behind the splash somewhat solves the issue, but there are still some components that don't get set to the correct theme. It's different components every time, so i'm guessing there's still a bit of a race condition when doing it that way as well. Delaying splash to flip the theme isn't a great solution either as we want our splash to go away as fast as possible without delaying it.
Activity
nickmccomb commentedon Oct 1, 2026
@jpudysz flipping the theme on startup behind the splash somewhat solves the issue, but there are still some components that don't get set to the correct theme. It's different components every time, so i'm guessing there's still a bit of a race condition when doing it that way as well. Delaying splash to flip the theme isn't a great solution either as we want our splash to go away as fast as possible without delaying it.
jpudysz commentedon Oct 1, 2026
Yes, it's a race condition. Setting theme in requestIdleCallback could help, but I was able to repro and should fix it today.
nickmccomb commentedon Oct 1, 2026
@jpudysz legend!! Thank you 🐐
github-actions commentedon Oct 1, 2026
New release is published: https://docs.uniwind.dev/pro/changelog