[Bug] Dark-mode startup shows a full-screen white loading flash
Background and impact
When the application is configured for dark mode, the startup phase still displays a full-screen white loading screen. The splash screen covers the entire window until the React root is rendered and the 180 ms exit animation finishes. This creates a noticeable white flash in dark environments, especially when initialization is slow.
Affected modules
apps/app/index.htmlapps/app/src/index.react.tsx
index.html correctly resolves and sets document.documentElement.dataset.theme before the UI starts, but the splash screen CSS hard-codes its background as #ffffff and does not follow the resolved theme.
Steps to reproduce
- Set the iPolloWork theme to Dark, or use System while the operating system is in dark mode.
- Fully exit the desktop application and launch it again.
- Observe the startup screen before the main UI has finished loading.
Expected behavior
The startup screen should use a background and loading asset consistent with the resolved theme. Dark mode should not show a full-screen white flash.
Actual behavior
The startup screen always uses a white background, which does not match the dark application UI.
Suggested investigation
Make #ipollowork-startup-splash use theme-specific styling based on html[data-theme] and, if necessary, use a dark-mode loading asset. Its appearance should remain consistent with the theme resolved by bootstrapTheme().