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

Flashing white screen in dark mode #17898

Open
3 of 4 tasks
brishtibheja opened this issue Jan 29, 2025 · 9 comments
Open
3 of 4 tasks

Flashing white screen in dark mode #17898

brishtibheja opened this issue Jan 29, 2025 · 9 comments

Comments

@brishtibheja
Copy link

brishtibheja commented Jan 29, 2025

Checked for duplicates?

  • This issue is not a duplicate

Does it also happen in the desktop version?

  • This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

Opening stats screen in dark mode:

Record_2025-01-29-04-24-24.mp4

This also happens in the congrats screen for AnkiDroid.

Forum discussion

Expected behaviour

No flickering

Debug info

AnkiDroid Version = 2.21alpha11 (b0d7b48431676f1ee721b4cae16065d50af0425a)
Backend Version = 0.1.49-anki25.01rc1 (25.01rc1 b65fa693dacbd92c0bdd2a8c3800d0827432d108)
Android Version = 11 (SDK 30)
ProductFlavor = full
Device Info = realme | realme | RMX2193 | RMX2193 | RMX2193 | mt6768
Webview User Agent = Mozilla/5.0 (Linux; Android 11; RMX2193 Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/131.0.6778.260 Mobile Safari/537.36
ACRA UUID = cf265e01-9693-407f-984d-61ddf9698fac
FSRS = 2.0.2 (Enabled: true)
Crash Reports Enabled = true

(Optional) Anything else you want to share?

No response

Research

  • I have checked the manual and the FAQ and could not find a solution to my issue
  • (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
@BrayanDSO
Copy link
Member

BrayanDSO commented Jan 29, 2025

This bug does not occur in the latest version of Anki Desktop

Have you really tested that? You normally don't, and it does occur there. Not always, but it does. I am flagging it as upstream issue until someone finds a cause

Anki 25.01 (b65fa693)  
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26100
2025-01-29.17-11-26.mp4

@brishtibheja

This comment has been minimized.

@BrayanDSO

This comment has been minimized.

@david-allison
Copy link
Member

david-allison commented Jan 29, 2025

Needs investigation, deckOptionsReady should have resolved it on the deck options side, but apparently there's still Deck Options issues.

Stats will be worse

See

@BrayanDSO
Copy link
Member

BrayanDSO commented Jan 29, 2025

Stats will be worse

Idk what you mean by that, nor if you are suggesting to use a progress bar in stats as well, which I don't think that is a good idea

@david-allison
Copy link
Member

Deck Options now receives a signal from the backend that loading is completed, and it's a heavy page load.

Stats doesn't have this signal, so the 'flash' will last for longer.

@BrayanDSO
Copy link
Member

Not sure if a ready method actually necessary in Anki's code, but I'm not touching there, so good luck for whoever does.

@david-allison
Copy link
Member

david-allison commented Jan 30, 2025

@Arthur-Milchior I used deckOptionsReady because you added it, any thoughts here?

@BrayanDSO
Copy link
Member

IIRC, the flash happens because the Svelte pages start loading then set the dark mode colors later, so the background may be light before that. If that's still the case, it should be solvable (never dealt with Svelte/SvelteKit to be sure, but it really should be solvable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants