Dark mode: Program start and end should be dark, too. · phcode-dev · Discussion #2148

Discussion options

Thanks for your great program, which I use since a few days.

I work in dark mode. When I start the program, I see this:

image

Ouch.

When I end the program, there is also a (shorter) white flash.

Is it possible, to darken these situations, both?

You must be logged in to vote
Comment options

Hey, wait a sec. This should be super quick, like barely noticeable. How long does the white screen stay for you?

You must be logged in to vote

3 replies

@merlinuwe

Comment options

Hey, wait a sec. This should be super quick, like barely noticeable. How long does the white screen stay for you?

Thanks for your very fast reply. I think 1-2 seconds.

(The problem is because of my eyes are light sensible. I work in the dark and always use dark mode.)

@devvaannsh

Comment options

I don’t think turning it into a dark screen is possible since it’s Tauri (the framework Phoenix is built on) handling the loading. But I’ll still look into it and see if we can do something.

@devvaannsh

Comment options

I understand your issue. We'll definitely look into it with utmost priority and hopefully come up with a solution. ⚡

Comment options

Was looking into a fix, and it appears that it will be tricky as this is an underlying issue with tauri which is our main UI engine.
See tauri-apps/tauri#1564 , they have marked it as wont fix and closed it apparently. The hacks described is to hide the window till first render, which may be perceived as slow app boot. This could be a bit tricky to solve, let me try this out and see how bad the load speed is affected.

You must be logged in to vote

8 replies

@merlinuwe

Comment options

We have moved this to high priority as this is an unacceptable use case for light sensitive users. Fix will be available in the next release scheduled for mid-end march.

Fix is now being tracked in #2149 . Please track progress there.

Thank you soo much.

@abose

Comment options

For all the things we tried, the hacks tend to increase app start time to about 1 seconds+ on windows, which is unacceptable. The core problem is Tauri core behavior and there is very little we can do now with user space hacks. So we cant proceed with hacks from our end at this time.

I will follow up with Tauri to have a better fix in core for this. This may take longer to get fixed as i need to coordinate with Tauri for a fix on a bug that they tagged as wont-fix. I will try my best to get this done. Apologies for the inconvenience.

@abose

Comment options

BTW, we can definitely make a private build for you with the one second delay fix, but you will need to manually handle the updates or disable auto update. Essentially we will need to create a private build on every update for this use case.

@merlinuwe

Comment options

BTW, we can definitely make a private build for you with the one second delay fix, but you will need to manually handle the updates or disable auto update. Essentially we will need to create a private build on every update for this use case.

No, that wouldn't be necessary.

@abose

Comment options

We have escalated the issue with tauri. Hopefully something good comes up.