Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flash of white background in electron dark mode #3794

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

franknoirot
Copy link
Collaborator

@franknoirot franknoirot commented Sep 5, 2024

If user has dark mode set on their OS, they still see a flash of white whenever the app is opened or refreshed. This fixes that by setting the Electron window background to a theme-appropriate value.

Sources

  1. Electron docs
  2. This Replit issue

Demo

Screenshare.-.2024-09-05.11_22_30.AM-compressed.mp4

Copy link

qa-wolf bot commented Sep 5, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Sep 5, 2024 3:29pm

Copy link
Collaborator Author

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be easy enough to review and double-check for anyone, so I tagged whoever might be free. I think you'll have to pull down the branch and build the app though

@jessfraz jessfraz merged commit e15c38f into main Sep 5, 2024
24 checks passed
@jessfraz jessfraz deleted the franknoirot/electron-window-background branch September 5, 2024 18:33
@jessfraz jessfraz mentioned this pull request Sep 5, 2024
franknoirot added a commit that referenced this pull request Sep 9, 2024
lf94 pushed a commit that referenced this pull request Sep 9, 2024
@franknoirot franknoirot mentioned this pull request Sep 13, 2024
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.

2 participants