-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
New tab flashes white when in Light mode #3575
Comments
The issue is reproducible in both
|
If/when we have a fix for this, we'll want to make extra sure the fix works really well (especially if uplifting). There have been two rounds of fixes which were approved but ultimately didn't fix the problem: Also, per @rossmoody in brave/brave-core#1680 (comment):
|
Hey guys, thanks for all the work you do on Brave. I know this is not a very high-priority issue but it's incredibly annoying - I think its not just limited to the new tab page. I use the Stylus extension to apply custom dark themes to websites and this bright white flash right before a dark theme is applied makes for really poor UX. Maybe the browser can default to a dark color background if the dark theme is enabled in settings? |
It's so annoying that I switched back to Firefox. I can not work like this at night. This needs fixing asap! |
cc: @imptrx, @cezaraugusto Can you guys take a look? I bumped this one up in priority. |
I had started a WIP of setting the background image from a c++ data source instead of waiting for the react code to start. Happy to continue that or for someone to take over. Though it does seem to be we need to clarify the goal as some are complaining of a white flash on tab-open in light theme mode, and some in dark theme mode? The two methods we can use are:
I’m not sure those will solve all the stated issues but it should bring us in line with other NTP. I believe we already have a good default body bg color behind the image, but we should double-check. |
I played around with this issue on:
With default appearance settings here is what I see as the current behavior:
Unless this behavior is OS varying, I think the goal here is to make the default browser background black/dark grey on our native Light theme? |
@imptrx if you have a moment, please test setting a dark background color directly on the .html file body (not via javascript) and see if that affects the flash of white color. |
oh ignore that @imptrx just noticed there is a background-color. I suggest therefore that the fix is to keep the user's chosen light / dark initial background, and then fade in the image / gradient on top of it when it's ready. |
Verification passed on
Verified expected behavior outlined in brave/brave-core#2957
Verification passed on
Verified expected behavior outlined in brave/brave-core#2957
Verified passed with
Verified expected behavior outlined in brave/brave-core#2957
|
Follow up to #1876 and #3362
Steps to Reproduce
chrome://settings/?search=Brave+colors
Light
Actual result:
White flash
Expected result:
No white flash
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
cc @brave/legacy_qa @rossmoody
The text was updated successfully, but these errors were encountered: