iPolloWork icon indicating copy to clipboard operation
iPolloWork copied to clipboard

[Bug] Dark-mode startup shows a full-screen white loading flash

Open yuuu125 opened this issue 4 months ago • 0 comments

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.html
  • apps/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

  1. Set the iPolloWork theme to Dark, or use System while the operating system is in dark mode.
  2. Fully exit the desktop application and launch it again.
  3. 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().

yuuu125 avatar Jul 20 '26 08:07 yuuu125