Skip to content

Make loader screen honor preferred color scheme#1037

Merged
aine-etke merged 2 commits intomainfrom
color-scheme-aware-loader
Feb 4, 2026
Merged

Make loader screen honor preferred color scheme#1037
aine-etke merged 2 commits intomainfrom
color-scheme-aware-loader

Conversation

@aine-etke
Copy link
Member

Previously, when you opened Synapse Admin (especially for the first time), you would see an almost pure white screen with a spinner signaling that the app was loading. That screen did not respect the preferred color scheme and burned eyes for dark-scheme users.

This PR resolves that problem by introducing an automatic dark/light theme for the loader, based on the browser's preferred color scheme, similar to how the app itself behaves.

Also, this PR includes tricks to provide 2 manifest.jsons - one for the light theme (default), and another one for the dark theme. As browsers' adoption of proper <link rel="manifest"> is not very good, additional JS hack is introduced to swap manifests depending on the preferred color scheme

@aine-etke aine-etke changed the title Make loader color-scheme aware Make loader honor preferred color scheme Feb 4, 2026
@aine-etke aine-etke changed the title Make loader honor preferred color scheme Make loader screen honor preferred color scheme Feb 4, 2026
@aine-etke aine-etke merged commit 2f2510c into main Feb 4, 2026
2 checks passed
@aine-etke aine-etke deleted the color-scheme-aware-loader branch February 4, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant