Skip to content

Fix flash-of-white in dark theme#10785

Closed
franknoirot wants to merge 2 commits intomainfrom
franknoirot/adhoc/fix-dark-mode-flash
Closed

Fix flash-of-white in dark theme#10785
franknoirot wants to merge 2 commits intomainfrom
franknoirot/adhoc/fix-dark-mode-flash

Conversation

@franknoirot
Copy link
Copy Markdown
Contributor

@franknoirot franknoirot commented Apr 3, 2026

This was bothering me while testing the app late at night, so I had Codex write the inline styles that we need to get user theme to be honored before JS or anything else loads.

Note: this does not fix a separate flash-of-light that occurs in the desktop app Electron window. That will need to be investigated further, I'm not as clear on how to fix it.

Demo (ow)

Screenshare.-.2026-04-03.1_06_36.AM-compressed.mp4

This was bothering me while testing the app late at night, so I had
Codex write the inline styles that we need to get user theme to be
honored before JS or anything else loads.
@franknoirot franknoirot requested a review from a team as a code owner April 3, 2026 05:05
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modeling-app Ready Ready Preview, Comment Apr 3, 2026 5:38am

Request Review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some of the text in the snapshot has gone from light to dark. Maybe you can find a way to prevent this?

@pierremtb
Copy link
Copy Markdown
Contributor

I grabbed the desktop app build from https://github.com/KittyCAD/modeling-app/actions/runs/23935022534/job/69809706995, I'm not convinced this fully it

Screen.Recording.2026-04-03.at.10.55.56.AM.mov

@jacebrowning jacebrowning marked this pull request as draft April 3, 2026 15:03
@franknoirot
Copy link
Copy Markdown
Contributor Author

@pierremtb sorry I should have given it more top billing: I have a note in the description that this just fixes the issue on web, not electron. @jacebrowning thanks for marking this as draft yeah I need to investigate the base styles for the text and whatnot.

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.

3 participants