Determining the system accent color is an asynchronous operation that may take a noticeable amount of time.
When the system has a non-default accent color, the default orange accent color may sometimes be visible for a short glimpse until the system accent color has been resolved and communicated over the platform channel.
The problem is usually most visible with more complex UIs but is even reproducible with such a minimal test case:
We could add something like YaruTheme.ensureInitialized() that can be called and awaited on startup. Alternatively, we could hide the logic inside YaruTheme and build an empty widget until the information arrives.
Determining the system accent color is an asynchronous operation that may take a noticeable amount of time.
When the system has a non-default accent color, the default orange accent color may sometimes be visible for a short glimpse until the system accent color has been resolved and communicated over the platform channel.
The problem is usually most visible with more complex UIs but is even reproducible with such a minimal test case:
We could add something like
YaruTheme.ensureInitialized()
that can be called and awaited on startup. Alternatively, we could hide the logic insideYaruTheme
and build an empty widget until the information arrives.