-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Expected Behavior
When Element Desktop is launching and the window first appears, the window should show the user interface (e.g. a loading screen or similar).
Actual Behavior
When Element Desktop is launching and the window first appears, the window briefly flashes white before the loading animation is shown.
I have uploaded a short screen recording of the issue to YouTube.
Steps to reproduce
Launch Element Desktop when it is not already running.
(The white flash may present itself in other situations, as well.)
Version Information
- Operating system: macOS 11.5.2
- Element version: 1.8.5
- Installed from https://element.io/get-started
- Homeserver: matrix.org
- rageshake not submitted
Commentary
The white flash when launching an Electron application is a known issue that should be easy to fix. The white flash occurs because the BrowserWindow instance is shown before the CSS is done loading, and one way of fixing the issue is using a ready-to-show event and waiting to show the BrowserWindow until after the CSS is done loading.
More detailed instructions can be found here.
Related Issues
I filed a fresh bug report because no one has previously created a bug report about the white flash at startup. However, people have mentioned similar behavior ambiguously or in slightly different contexts, which I will link below:
- Light theme is used before setting the dark theme (not quite the same issue because it involves the loading screen using the wrong theme)
- White screen of welcome when upgrading Riot can be confusing (extremely vague bug report that may or may not be the same thing)
- Element starts with white screen (exactly the same issue I'm seeing, but closed because it was blamed on Snap)
- Loader looks bad in dark mode (also about the loading screen theme, not the blank screen before the loading screen)
- Use system theme by default (white flash mentioned in comment thread)